fixed ~ani and ~mang

This commit is contained in:
Master Kwoth
2016-03-03 10:10:08 +01:00
parent ffb63f9e81
commit 4c0e832463
9 changed files with 60 additions and 55 deletions

View File

@ -44,7 +44,7 @@ namespace NadekoBot.Modules {
if (!(await SearchHelper.ValidateQuery(e.Channel, e.GetArg("query")))) return;
string result;
try {
result = (await SearchHelper.GetAnimeQueryResultLink(e.GetArg("query"))).ToString();
result = (await SearchHelper.GetAnimeData(e.GetArg("query"))).ToString();
} catch {
await e.Channel.SendMessage("Failed to find that anime.");
return;
@ -61,7 +61,7 @@ namespace NadekoBot.Modules {
if (!(await SearchHelper.ValidateQuery(e.Channel, e.GetArg("query")))) return;
string result;
try {
result = (await SearchHelper.GetMangaQueryResultLink(e.GetArg("query"))).ToString();
result = (await SearchHelper.GetMangaData(e.GetArg("query"))).ToString();
} catch {
await e.Channel.SendMessage("Failed to find that anime.");
return;