Guide

Use the RevoltSharp built-in command handler to use it for bots

You can use the build-in command handler to parse and run commands from messages!

1. Install the RevoltSharp.Commands package from NuGet

Download from NuGetarrow-up-right or use the Visual Studio package manager.

2. Create the Command Handler class

chevron-rightCommand Handlerhashtag

3. Change your prefix

Update the CommandHandler.Prefix property to change the prefix.

4. Update your Program.cs file and add the command handler

5. Create a command module file

chevron-rightTest Modulehashtag

Make sure the class is public and that : ModuleBase is added.

The command handler will load any commands inside these modules.

Extra

You can use command attributes to make life easier!

Last updated