geekbot/Geekbot.net/Commands/Say.cs

20 lines
548 B
C#
Raw Normal View History

2017-04-17 16:58:48 +02:00
using System.Threading.Tasks;
2017-09-15 22:56:03 +02:00
using Discord;
2017-04-17 16:58:48 +02:00
using Discord.Commands;
2017-10-12 16:34:10 +02:00
using Geekbot.net.Lib;
2017-04-17 16:58:48 +02:00
namespace Geekbot.net.Commands
2017-04-17 16:58:48 +02:00
{
public class Say : ModuleBase
{
2017-09-15 22:56:03 +02:00
[RequireUserPermission(GuildPermission.Administrator)]
[Command("say", RunMode = RunMode.Async)]
2017-10-12 16:34:10 +02:00
[Remarks(CommandCategories.Admin)]
2017-09-15 22:56:03 +02:00
[Summary("Say Something.")]
public async Task Echo([Remainder] [Summary("What?")] string echo)
2017-04-17 16:58:48 +02:00
{
await Context.Message.DeleteAsync();
await ReplyAsync(echo);
}
}
}