diff --git a/src/Bot/Commands/Utils/Choose.cs b/src/Bot/Commands/Utils/Choose.cs index 1ceedcb..450433d 100644 --- a/src/Bot/Commands/Utils/Choose.cs +++ b/src/Bot/Commands/Utils/Choose.cs @@ -1,6 +1,4 @@ -using System; -using System.Threading.Tasks; -using Discord.Commands; +using Discord.Commands; using Geekbot.Core; using Geekbot.Core.ErrorHandling; using Geekbot.Core.GuildSettingsManager; @@ -15,7 +13,7 @@ namespace Geekbot.Bot.Commands.Utils } [Command("choose", RunMode = RunMode.Async)] - [Summary("Let the bot choose for you, seperate options with a semicolon.")] + [Summary("Let the bot choose for you, separate options with a semicolon.")] public async Task Command([Remainder] [Summary("option1;option2")] string choices) { diff --git a/src/Web/Commands/Choose.cs b/src/Web/Commands/Choose.cs new file mode 100644 index 0000000..7c25940 --- /dev/null +++ b/src/Web/Commands/Choose.cs @@ -0,0 +1,50 @@ +using Geekbot.Interactions; +using Geekbot.Interactions.ApplicationCommand; +using Geekbot.Interactions.Request; +using Geekbot.Interactions.Response; +using Localization = Geekbot.Core.Localization; + +namespace Geekbot.Web.Commands; + +public class Choose : InteractionBase +{ + private struct Options + { + public const string InputOptions = "options"; + public const string Separator = "separator"; + } + + public override Command GetCommandInfo() => new () + { + Name = "choose", + Description = "Let the bot choose for you.", + Type = CommandType.ChatInput, + Options = new List