private async Task InvokeUwUServices(SocketGuildUser user) { int uwuCount; if (user != null && user.IsBot) { await ReplyAsync("Cannot find the uwu score for a bot"); return; } switch (Context.Guild) { case null: await ReplyAsync("Please use this command in a server"); break; default: UwUCounterService uwuCounterService = new UwUCounterService(); uwuCount = await uwuCounterService.CountUwU(user, Context); await HandleUwUCount(uwuCount, user); break; } }
private void InstantiateUwUCountServices() { Log.Information("Instantiating UwU Counting Services"); _uwuCounterService = new UwUCounterService(); _discordClient.MessageReceived += _uwuCounterService.HandleMessage; }