Change loadmedia to loaddata
This commit is contained in:
@@ -13,7 +13,7 @@ from discord.ext import commands
|
||||
import random
|
||||
|
||||
# IMPORTS - internal
|
||||
import loadmedia
|
||||
import loaddata
|
||||
|
||||
# COG INIT
|
||||
class Anime(commands.Cog):
|
||||
@@ -27,7 +27,7 @@ class Anime(commands.Cog):
|
||||
Sends a random Anime gif or picture
|
||||
"""
|
||||
|
||||
media_type = random.choice(loadmedia.__media_anime__)
|
||||
media_type = random.choice(loaddata.__media_anime__)
|
||||
media = random.choice(media_type)
|
||||
await ctx.send(media)
|
||||
|
||||
@@ -40,7 +40,7 @@ class Anime(commands.Cog):
|
||||
|
||||
if girl == "List":
|
||||
girl_list = ""
|
||||
for key in loadmedia.__media_girl__.keys():
|
||||
for key in loaddata.__media_girl__.keys():
|
||||
if not girl_list:
|
||||
girl_list = girl_list + key
|
||||
else:
|
||||
@@ -50,7 +50,7 @@ class Anime(commands.Cog):
|
||||
|
||||
else:
|
||||
try:
|
||||
media = random.choice(loadmedia.__media_girl__[girl])
|
||||
media = random.choice(loaddata.__media_girl__[girl])
|
||||
await ctx.send(media)
|
||||
except KeyError as error:
|
||||
text = (
|
||||
|
||||
@@ -10,7 +10,7 @@ from discord.ext import commands
|
||||
import random
|
||||
|
||||
# IMPORTS - internal
|
||||
import loadmedia
|
||||
import loaddata
|
||||
|
||||
class MemeError(Exception):
|
||||
pass
|
||||
@@ -30,7 +30,7 @@ class Meme(commands.Cog):
|
||||
|
||||
if query == "List":
|
||||
meme_list = ""
|
||||
for key in loadmedia.__memes_list__.keys():
|
||||
for key in loaddata.__memes_list__.keys():
|
||||
if not meme_list:
|
||||
meme_list = meme_list + key
|
||||
else:
|
||||
@@ -39,7 +39,7 @@ class Meme(commands.Cog):
|
||||
await ctx.send(f"Currently listed memes: `{meme_list}`")
|
||||
else:
|
||||
try:
|
||||
meme = random.choice(loadmedia.__memes_list__[query])
|
||||
meme = random.choice(loaddata.__memes_list__[query])
|
||||
await ctx.send(meme)
|
||||
except KeyError as e:
|
||||
await ctx.send("Meme not found in database")
|
||||
|
||||
Reference in New Issue
Block a user