diff options
author | 2019-02-20 17:48:43 +0100 | |
---|---|---|
committer | 2019-02-20 17:48:43 +0100 | |
commit | 7d84d121b323a7997bf734a8535a10265d0bc9d8 (patch) | |
tree | 8363820ad5d74e82d26d8622564c2e0ef7831187 | |
parent | Add .who_is_valentine and .valentine_facts (diff) |
Update whoisvalentine.py to address requested changes
A few things have been changed to address the changes listed under PR #122:
- Changed the color tag of the embed from both commands from
discord.Color.dark_magenta() to bots.constants.Colours.pink
- Renamed valentine_facts to valentine_fact
These changes are needed to fit the projects standards.
-rw-r--r-- | bot/seasons/valentines/whoisvalentine.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/seasons/valentines/whoisvalentine.py b/bot/seasons/valentines/whoisvalentine.py index 53003b52..2fe07aba 100644 --- a/bot/seasons/valentines/whoisvalentine.py +++ b/bot/seasons/valentines/whoisvalentine.py @@ -6,6 +6,8 @@ from random import choice import discord from discord.ext import commands +from bot.constants import Colours + log = logging.getLogger(__name__) with open(Path("bot", "resources", "valentines", "valentine_facts.json"), "r") as file: @@ -24,7 +26,7 @@ class ValentineFacts: embed = discord.Embed( title="Who is Saint Valentine?", description=FACTS['whois'], - color=discord.Color.dark_magenta() + color=Colours.pink ) embed.set_thumbnail( url='https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Saint_Valentine_-_' @@ -34,14 +36,14 @@ class ValentineFacts: await ctx.channel.send(embed=embed) @commands.command() - async def valentine_facts(self, ctx): + async def valentine_fact(self, ctx): """ Shows a random fact about Valentine's Day. """ embed = discord.Embed( title=choice(FACTS['titles']), description=choice(FACTS['text']), - color=discord.Color.dark_magenta() + color=Colours.pink ) await ctx.channel.send(embed=embed) |