|
|
@ -504,15 +504,14 @@ class Anime(Cog):
|
|
|
|
# Store all data from the api in dict
|
|
|
|
# Store all data from the api in dict
|
|
|
|
if len(api_data["data"]) > 0:
|
|
|
|
if len(api_data["data"]) > 0:
|
|
|
|
for item in api_data["data"]:
|
|
|
|
for item in api_data["data"]:
|
|
|
|
# Don't bother storing Hentai's or Games (Not yet until I figure out what data they send)
|
|
|
|
anime_or_waifu[item["name"]] = {}
|
|
|
|
if item["type"] in ["Waifu", "Husbando", "TV", "ONA", "OVA"]:
|
|
|
|
for value in item:
|
|
|
|
anime_or_waifu[item["name"]] = {}
|
|
|
|
store_dict(anime_or_waifu, item, value)
|
|
|
|
for value in item:
|
|
|
|
|
|
|
|
store_dict(anime_or_waifu, item, value)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# When no waifu has been retrieved, send error message to the user
|
|
|
|
# When no waifu has been retrieved, send error message to the user
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
await self.bot.generate_embed(ctx, desc="**Waifu/Anime Not Found!**")
|
|
|
|
await self.bot.generate_embed(ctx, desc="**Waifu/Anime Not Found!**")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
# Get the instance of the bot
|
|
|
|
# Get the instance of the bot
|
|
|
|
bot = ctx.guild.get_member(self.bot.user.id)
|
|
|
|
bot = ctx.guild.get_member(self.bot.user.id)
|
|
|
|