public async Task RunAsync() { _logger.LogInformation($"--- DiscordBotService started ---"); NationManager.Initialize(_config); UserManager.Initialize(_config); DiscordClient = new DiscordSocketClient(); commandService = new CommandService(new CommandServiceConfig { SeparatorChar = _config.SeperatorChar, DefaultRunMode = RunMode.Async, CaseSensitiveCommands = false }); SetUpDiscordEvents(); await commandService.AddModulesAsync(Assembly.GetEntryAssembly(), Program.ServiceProvider); await DiscordClient.LoginAsync(TokenType.Bot, _config.DiscordBotLoginToken); await DiscordClient.StartAsync(); IsRunning = true; }