From 9be2ffc54ac7fa21739a9b3d4903de80d8c57381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique=20Ivanchechen?= Date: Sun, 12 Feb 2023 17:11:12 -0300 Subject: [PATCH] stuff --- Modules/PublicModule.cs | 14 -------------- Program.cs | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/Modules/PublicModule.cs b/Modules/PublicModule.cs index aa56235..14e62b0 100644 --- a/Modules/PublicModule.cs +++ b/Modules/PublicModule.cs @@ -10,11 +10,6 @@ namespace TextCommandFramework.Modules public PictureService PictureService { get; set; } public PlayerService PlayerService { get; set; } - [Command("ping")] - [Alias("pong", "hello")] - public Task PingAsync() - => ReplyAsync("pong!"); - [Command("cat")] public async Task CatAsync() { @@ -23,10 +18,6 @@ namespace TextCommandFramework.Modules await Context.Channel.SendFileAsync(stream, "cat.png"); } - [Command("echo")] - public Task EchoAsync([Remainder] string text) - => ReplyAsync('\u200B' + text); - [Command("play", RunMode = RunMode.Async)] public async Task PlayAsync([Remainder] string text) { @@ -70,10 +61,5 @@ namespace TextCommandFramework.Modules await PlayerService.Leave(Context.Guild.Id); } - - [Command("guild_only")] - [RequireContext(ContextType.Guild, ErrorMessage = "Sorry, this command must be ran from within a server, not a DM!")] - public Task GuildOnlyCommand() - => ReplyAsync("Nothing to see here!"); } } diff --git a/Program.cs b/Program.cs index 15c77f7..8222e0b 100644 --- a/Program.cs +++ b/Program.cs @@ -34,7 +34,7 @@ namespace TextCommandFramework services.GetRequiredService().Log += LogAsync; await Connect(client); - client.Disconnected += async (ex) => await Connect(client); + //client.Disconnected += async (ex) => await Connect(client); await services.GetRequiredService().InitializeAsync();