geekbot/Geekbot.net/Modules/Say.cs
2017-04-17 16:58:48 +02:00

16 lines
No EOL
439 B
C#

using System.Threading.Tasks;
using Discord.Commands;
namespace Geekbot.net.Modules
{
public class Say : ModuleBase
{
[RequireUserPermission(Discord.GuildPermission.Administrator)]
[Command("say"), Summary("Say Something.")]
public async Task Echo([Remainder, Summary("What?")] string echo)
{
await Context.Message.DeleteAsync();
await ReplyAsync(echo);
}
}
}