Beispiel #1
0
 public async Task Search(CommandContext context, [Description("Args to search.")] params string[] searchArgs)
 {
     var jo = JObject.Parse(await WikiaHelper.SearchWikia(WikiaHelper.WikiaType.Animanga, string.Join("+", searchArgs)));
     await context.Message.RespondAsync(jo["items"][0]["url"].ToString());
 }
Beispiel #2
0
 public async Task GetTopArticle(CommandContext context)
 {
     var jo = JObject.Parse(await WikiaHelper.GetTopArticles(WikiaHelper.WikiaType.Animanga));
     await context.Message.RespondAsync(jo["basepath"].ToString() + jo["items"][0]["url"].ToString());
 }