예제 #1
0
        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;
            }
        }
예제 #2
0
 private void InstantiateUwUCountServices()
 {
     Log.Information("Instantiating UwU Counting Services");
     _uwuCounterService              = new UwUCounterService();
     _discordClient.MessageReceived += _uwuCounterService.HandleMessage;
 }