예제 #1
0
파일: Misc.cs 프로젝트: kth-me/Evil.bot
        //[RequireUserPermission(GuildPermission.ManageMessages)]
        public async Task Pick([Remainder] string message)
        {
            var options = message.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);

            var r         = new Random();
            var selection = options[r.Next(0, options.Length)];

            //await ReplyAsync(embed: EmbedHandler.Neutral(selection));
            await ReplyAsync(embed : EmbedHandler.Neutral(selection));
        }
예제 #2
0
파일: Misc.cs 프로젝트: kth-me/Evil.bot
 public async Task Echo([Remainder] string message)
 {
     await Context.Channel.SendMessageAsync(embed : EmbedHandler.Neutral(message));
 }