From 3c74d1915ede8955e18258325f65a4037b2a844c Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Wed, 15 Jun 2016 13:42:36 +0200 Subject: [PATCH] removed some trash --- NadekoBot/Modules/Trello/TrelloModule.cs | 18 ------------------ NadekoBot/NadekoBot.cs | 15 --------------- 2 files changed, 33 deletions(-) diff --git a/NadekoBot/Modules/Trello/TrelloModule.cs b/NadekoBot/Modules/Trello/TrelloModule.cs index ecba583d..fc30deed 100644 --- a/NadekoBot/Modules/Trello/TrelloModule.cs +++ b/NadekoBot/Modules/Trello/TrelloModule.cs @@ -68,24 +68,6 @@ namespace NadekoBot.Modules.Trello cgb.AddCheck(PermissionChecker.Instance); - cgb.CreateCommand(Prefix + "join") - .Alias(Prefix + "j") - .Description("Joins a server") - .Parameter("code", Discord.Commands.ParameterType.Required) - .Do(async e => - { - if (!NadekoBot.IsOwner(e.User.Id) || NadekoBot.IsBot) return; - try - { - await (await client.GetInvite(e.GetArg("code")).ConfigureAwait(false)).Accept() - .ConfigureAwait(false); - } - catch (Exception ex) - { - Console.WriteLine(ex.ToString()); - } - }); - cgb.CreateCommand(Prefix + "bind") .Description("Bind a trello bot to a single channel. " + "You will receive notifications from your board when something is added or edited." + diff --git a/NadekoBot/NadekoBot.cs b/NadekoBot/NadekoBot.cs index 1c9aea9d..88e3443d 100644 --- a/NadekoBot/NadekoBot.cs +++ b/NadekoBot/NadekoBot.cs @@ -48,21 +48,6 @@ namespace NadekoBot { Console.OutputEncoding = Encoding.Unicode; - //var lines = File.ReadAllLines("data/input.txt"); - //HashSet list = new HashSet(); - //for (int i = 0; i < lines.Length; i += 3) { - // dynamic obj = new JArray(); - // obj.Text = lines[i]; - // obj.Author = lines[i + 1]; - // if (obj.Author.StartsWith("-")) - // obj.Author = obj.Author.Substring(1, obj.Author.Length - 1).Trim(); - // list.Add(obj); - //} - - //File.WriteAllText("data/quotes.json", Newtonsoft.Json.JsonConvert.SerializeObject(list, Formatting.Indented)); - - //Console.ReadKey(); - // generate credentials example so people can know about the changes i make try { File.WriteAllText("data/config_example.json", JsonConvert.SerializeObject(new Configuration(), Formatting.Indented));