From a770a771e0f6af73535d11e555ad5428788089e0 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 20 Jan 2016 18:54:50 +0100 Subject: [PATCH] troll command,commented out to prevent abuse --- NadekoBot/Modules/Conversations.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/NadekoBot/Modules/Conversations.cs b/NadekoBot/Modules/Conversations.cs index 5989ebd9..f68e1975 100644 --- a/NadekoBot/Modules/Conversations.cs +++ b/NadekoBot/Modules/Conversations.cs @@ -111,8 +111,23 @@ namespace NadekoBot.Modules } catch (Exception) { continue; } } }); - - + /* + cgb.CreateCommand("avalanche!") + .Description("Mentions a person in every channel of the server, then deletes it") + .Parameter("name", ParameterType.Required) + .Do(e => { + var usr = e.Server.FindUsers(e.GetArg("name")).FirstOrDefault(); + if (usr == null) return; + e.Server.AllChannels.ForEach(async c => { + try { + var m = await c.SendMessage(usr.Mention); + await m.Delete(); + } catch (Exception ex) { + Console.WriteLine(ex); + } + }); + }); + */ CreateCommand(cgb, "do you love me") .Description("Replies with positive answer only to the bot owner.") .Do(async e => {