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();