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 NuGet or use the Visual Studio package manager.

2. Create the Command Handler class

Command Handler

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

Test Module

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