예제 #1
0
파일: WoWNode.cs 프로젝트: LtLi0n/MrServer
        public async Task GetAuctions(string realm)
        {
            string auctions = await WoWNetwork.DownloadAuctions(realm);

            string json = JValue.Parse(auctions).ToString(Formatting.Indented);

            await Context.Channel.SendMessageAsync($"```json\n{json.Remove(1980, json.Length - 1980)}```");
        }
예제 #2
0
파일: WoWNode.cs 프로젝트: LtLi0n/MrServer
        public async Task GetBoss(string ID)
        {
            string json = await WoWNetwork.DownloadBoss(int.Parse(ID));

            await Context.Channel.SendMessageAsync($"```json\n{JValue.Parse(json).ToString(Formatting.Indented)}```");
        }