static void Main(string[] args) { int code; while (true) { YahurrBot bot = new YahurrBot(); code = (int)bot.StartAsync().GetAwaiter().GetResult(); if (code != 2) { break; } } Console.WriteLine("Program exited with code: " + code); }
internal void LoadModule(DiscordSocketClient client, YahurrBot bot, object config) { this.Client = client; this.Bot = bot; this.Config = config; }