Working chatbot

This commit is contained in:
Myx
2024-06-01 12:34:03 +02:00
parent 3d7655a902
commit 87b35a2203
5 changed files with 66 additions and 0 deletions

View File

@@ -21,6 +21,23 @@ public static class Command
public const string Description = "Say goodbye to the bot!";
}
public static class Chat
{
public const string Name = "chat";
public const string Description = "Chat with the bot!";
public static readonly List<SlashCommandOptionBuilder>? Options = new()
{
new SlashCommandOptionBuilder
{
Name = "message",
Description = "Chat with Lunaris",
Type = ApplicationCommandOptionType.String,
IsRequired = true
}
};
}
public static class Join
{
public const string Name = "join";

View File

@@ -13,6 +13,7 @@ public static class SlashCommandRegistration
RegisterCommand(client, Command.Skip.Name, Command.Skip.Description);
RegisterCommand(client, Command.Play.Name, Command.Play.Description, Command.Play.Options);
RegisterCommand(client, Command.Stop.Name, Command.Stop.Description);
RegisterCommand(client, Command.Chat.Name, Command.Chat.Description, Command.Chat.Options);
}
private static void RegisterCommand(