Remove !say completly

This commit is contained in:
Runebaas 2019-01-27 22:32:13 +01:00
parent 2c6b61b7e6
commit 8059f03304
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -1,33 +0,0 @@
using System;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Geekbot.net.Lib.ErrorHandling;
namespace Geekbot.net.Commands.Admin
{
public class Say : ModuleBase
{
private readonly IErrorHandler _errorHandler;
public Say(IErrorHandler errorHandler)
{
_errorHandler = errorHandler;
}
[RequireUserPermission(GuildPermission.Administrator)]
[Command("say", RunMode = RunMode.Async)]
[Summary("Say Something.")]
public async Task Echo([Remainder] [Summary("What?")] string echo)
{
try
{
await Context.User.SendMessageAsync("the `!say` command has been disabled since 2018/10/30");
}
catch (Exception e)
{
await _errorHandler.HandleCommandException(e, Context);
}
}
}
}