Exemplo n.º 1
0
        public async Task Rankings(string input = "noIm")
        {
            if (input != "noIm" && input != "im")
            {
                input = "noIm";
            }
            dynamic result = ModuleUtilities.GetJsonFromEndpoint(OwlUrl + "rankings");
            //var content = result["content"];
            List <string> teams = OWLUtilities.ParseTeamInfo(result, input);

            if (input == "im")
            {
                foreach (string team in teams)
                {
                    await ReplyAsync(team);
                }
            }
            else if (input == "noIm")
            {
                string outputString = "";
                foreach (string team in teams)
                {
                    outputString += team;
                }
                await ReplyAsync(outputString);
            }
        }
Exemplo n.º 2
0
        public async Task Player(string player = "default")
        {
            dynamic result     = ModuleUtilities.GetJsonFromEndpoint(OwlUrl + "players");
            string  playerData = OWLUtilities.GetPlayerData(result, player);

            await ReplyAsync(playerData)
            ;
        }