public static void StartBot() { dclient = new DiscordClient(); DiscordBot bot = new DiscordBot(); HttpProcessor processor = new HttpProcessor(bot); Thread httpThread = new Thread(new ThreadStart(processor.StartProcessor)); httpThread.Start(); dclient.MessageReceived += (sender, msg) => { if (!msg.Message.IsAuthor) { bot.ProcessMessage(sender, msg); } }; dclient.Ready += (temp, idontknowwhattheseare) => { Console.WriteLine("Ready!"); }; dclient.ExecuteAndWait(async() => { Console.WriteLine("Starting Discord Bot..."); await dclient.Connect(discordToken, TokenType.Bot); }); }