aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-06-05 11:12:32 -0400
committerGravatar ToxicKidz <[email protected]>2021-06-05 11:12:32 -0400
commit9bdd47a141806db517f0f12474ec5688cf3bfb82 (patch)
tree57e65d4cb2af05dd60622337b1e1b23d003eab38
parentMerge pull request #757 from python-discord/block-some-status-dog-codes (diff)
chore: Use constants instead of instance variables that don't exist
This caused attribute errors in the prideanthem and pridefact commands.
-rw-r--r--bot/exts/pride/pride_anthem.py2
-rw-r--r--bot/exts/pride/pride_facts.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/pride/pride_anthem.py b/bot/exts/pride/pride_anthem.py
index 4650595a..05286b3d 100644
--- a/bot/exts/pride/pride_anthem.py
+++ b/bot/exts/pride/pride_anthem.py
@@ -24,7 +24,7 @@ class PrideAnthem(commands.Cog):
If none can be found, it will log this as well as provide that information to the user.
"""
if not genre:
- return random.choice(self.anthems)
+ return random.choice(VIDEOS)
else:
songs = [song for song in VIDEOS if genre.casefold() in song["genre"]]
try:
diff --git a/bot/exts/pride/pride_facts.py b/bot/exts/pride/pride_facts.py
index 631e2e8b..63e33dda 100644
--- a/bot/exts/pride/pride_facts.py
+++ b/bot/exts/pride/pride_facts.py
@@ -57,7 +57,7 @@ class PrideFacts(commands.Cog):
date = _date
if date.year < now.year or (date.year == now.year and date.day <= now.day):
try:
- await target.send(embed=self.make_embed(self.facts[str(date.year)][date.day - 1]))
+ await target.send(embed=self.make_embed(FACTS[str(date.year)][date.day - 1]))
except KeyError:
await target.send(f"The year {date.year} is not yet supported")
return