Change loadmedia to loaddata
This commit is contained in:
@@ -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