diff options
author | 2019-03-24 13:45:13 +0000 | |
---|---|---|
committer | 2019-03-24 13:45:13 +0000 | |
commit | 2d4eb36afff8ce3701d76f295e7895b4de8259b0 (patch) | |
tree | 84ea4eeab159c493d2aca3384601af2e8b7ad28c | |
parent | Moved the loading of the static JSON to the module namespace (diff) |
Save the Date - changed constant variable naming
a requested change
-rw-r--r-- | bot/seasons/valentines/savethedate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/valentines/savethedate.py b/bot/seasons/valentines/savethedate.py index ac69acc1..f460283a 100644 --- a/bot/seasons/valentines/savethedate.py +++ b/bot/seasons/valentines/savethedate.py @@ -13,7 +13,7 @@ log = logging.getLogger(__name__) HEART_EMOJIS = [":heart:", ":gift_heart:", ":revolving_hearts:", ":sparkling_heart:", ":two_hearts:"] with open(Path('bot', 'resources', 'valentines', 'date_ideas.json'), 'r', encoding="utf8") as f: - valentine_dates = load(f) + VALENTINES_DATES = load(f) class SaveTheDate: @@ -29,7 +29,7 @@ class SaveTheDate: """ Gives you ideas for what to do on a date with your valentine. """ - random_date = random.choice(valentine_dates['ideas']) + random_date = random.choice(VALENTINES_DATES['ideas']) emoji_1 = random.choice(HEART_EMOJIS) emoji_2 = random.choice(HEART_EMOJIS) embed = discord.Embed( |