Esempio n. 1
0
        public async Task SoloStats([Remainder] string playersName = null)
        {
            try
            {
                if (playersName == null)
                {
                    await ReplyAsync(Strings.PlayerNameRequired);

                    return;
                }
                var playerRep = new PlayerRepository();
                await playerRep.GetPlayerByName(playersName);

                if (playerRep.Player == null)
                {
                    await ReplyAsync(Strings.PlayerNotFound);

                    return;
                }
                await playerRep.GetPlayerStats();
                await ReplyAsync(embed : EmbedHelper.GetStats($"{playerRep.Player.Name}'s Solo FPP", playerRep.Player.SoloStats, Color.Red));
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                throw;
            }
        }
Esempio n. 2
0
        public async Task DuoStats([Remainder] string playersName = null)
        {
            if (playersName == null)
            {
                await ReplyAsync(Strings.PlayerNameRequired);

                return;
            }
            var playerRep = new PlayerRepository();
            await playerRep.GetPlayerByName(playersName);

            if (playerRep.Player == null)
            {
                await ReplyAsync(Strings.PlayerNotFound);

                return;
            }
            await playerRep.GetPlayerStats();

            await ReplyAsync(embed : EmbedHelper.GetStats($"{playerRep.Player.Name}'s Duo FPP", playerRep.Player.DuoStats, Color.Blue));
        }