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)]
|
2017-04-25 20:59:38 +02:00
|
|
|
|
[Command("say", RunMode = RunMode.Async), Summary("Say Something.")]
|
2017-04-17 16:58:48 +02:00
|
|
|
|
public async Task Echo([Remainder, Summary("What?")] string echo)
|
|
|
|
|
{
|
|
|
|
|
await Context.Message.DeleteAsync();
|
|
|
|
|
await ReplyAsync(echo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|