mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-21 05:25:08 +00:00
Working chatbot
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user