geekbot/Geekbot.net/Modules/Say.cs

16 lines
439 B
C#
Raw Normal View History

2017-04-17 16:58:48 +02:00
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);
}
}
}