14 lines
351 B
C#
14 lines
351 B
C#
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!");
|
|
}
|
|
}
|