From 148016186030a50a85fd8f5e06df1ee879a794ab Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 17 Jul 2016 13:54:16 +0200 Subject: [PATCH] had 2 leave commands, removed 1 --- .../Administration/AdministrationModule.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/NadekoBot/Modules/Administration/AdministrationModule.cs b/NadekoBot/Modules/Administration/AdministrationModule.cs index 3acaf92b..4556d441 100644 --- a/NadekoBot/Modules/Administration/AdministrationModule.cs +++ b/NadekoBot/Modules/Administration/AdministrationModule.cs @@ -890,21 +890,6 @@ namespace NadekoBot.Modules.Administration await e.Channel.SendMessage(":ok:").ConfigureAwait(false); }); - cgb.CreateCommand(Prefix + "leave") - .Description("Leaves a server with a supplied ID. | `.leave 493243292839`") - .Parameter("num", ParameterType.Required) - .AddCheck(SimpleCheckers.OwnerOnly()) - .Do(async e => - { - var srvr = NadekoBot.Client.Servers.Where(s => s.Id.ToString() == e.GetArg("num").Trim()).FirstOrDefault(); - if (srvr == null) - { - return; - } - await srvr.Leave().ConfigureAwait(false); - await e.Channel.SendMessage("`Done.`").ConfigureAwait(false); - }); - cgb.CreateCommand(Prefix + "savechat") .Description("Saves a number of messages to a text file and sends it to you. **Bot Owner Only** | `.chatsave 150`") .Parameter("cnt", ParameterType.Required)