public async Task MainAsync() { Console.WriteLine("Which bot to run: "); string key = Console.ReadLine(); if (key.Equals("debug")) { CommandPrefix = '?'; } string token = GetKey.getKey(key); SupportingMethods.SetupMongoDatabase(); SupportingMethods.SetupMongoCollection("userData"); await commands.AddModulesAsync(Assembly.GetEntryAssembly()); await client.LoginAsync(TokenType.Bot, token); await client.StartAsync(); // Block this task until the program is closed. await Task.Delay(-1); }