hello and send messages

This commit is contained in:
Vilmos Zsombor TANCZOS 2025-04-28 14:17:01 +02:00
parent 61b0fdf733
commit 4187f4269a
4 changed files with 89 additions and 0 deletions

14
Commands/HelloModule.cs Normal file
View 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!");
}
}