diff options
author | 2021-06-05 17:06:11 +0100 | |
---|---|---|
committer | 2021-06-05 17:06:11 +0100 | |
commit | 4970d9642f2a3eed8a3db5e1c438ee8cd4be72d9 (patch) | |
tree | 54264b9490474e62f65b64d9a6f8c3a6401da32d | |
parent | Merge pull request #765 from python-discord/poetry-in-docker-bug-fix (diff) | |
parent | Merge branch 'main' into fix/attribute-errors (diff) |
Merge pull request #768 from python-discord/fix/attribute-errors
Use the constants instead of instance variables that don't exist
-rw-r--r-- | bot/exts/pride/pride_anthem.py | 2 | ||||
-rw-r--r-- | bot/exts/pride/pride_facts.py | 2 |
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 |