hello and send messages
This commit is contained in:
parent
61b0fdf733
commit
4187f4269a
4 changed files with 89 additions and 0 deletions
14
Commands/HelloModule.cs
Normal file
14
Commands/HelloModule.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using DSharpPlus.CommandsNext;
|
||||
using DSharpPlus.CommandsNext.Attributes;
|
||||
|
||||
namespace KBot;
|
||||
|
||||
public class HelloModule : BaseCommandModule
|
||||
{
|
||||
[Command("greet")]
|
||||
[RequireRoles(RoleCheckMode.All, "Admin")]
|
||||
public async Task GreetCommand(CommandContext ctx)
|
||||
{
|
||||
await ctx.RespondAsync("Greetings! Thank you for executing me!");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue