aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/valentines/savethedate.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-03-30 10:37:59 -0400
committerGravatar GitHub <[email protected]>2019-03-30 10:37:59 -0400
commit5fe5b7c688e19e533fe34d98b8c754bc67a58beb (patch)
tree16c2946f97f85facf6b994b3c48099d369ee7f5a /bot/seasons/valentines/savethedate.py
parentMerge pull request #163 from python-discord/easter_announce (diff)
parentBlank line required between summary line and description. (diff)
Merge pull request #146 from python-discord/flake8-docstring
Implement flake8-docstrings
Diffstat (limited to 'bot/seasons/valentines/savethedate.py')
-rw-r--r--bot/seasons/valentines/savethedate.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/bot/seasons/valentines/savethedate.py b/bot/seasons/valentines/savethedate.py
index fbc9eb82..76f418a2 100644
--- a/bot/seasons/valentines/savethedate.py
+++ b/bot/seasons/valentines/savethedate.py
@@ -16,19 +16,16 @@ with open(Path('bot', 'resources', 'valentines', 'date_ideas.json'), 'r', encodi
VALENTINES_DATES = load(f)
-class SaveTheDate(commands.Cog):
- """
- A cog that gives random suggestion, for a valentines date !
- """
+class SaveTheDate:
+ """A cog that gives random suggestion for a Valentine's date."""
def __init__(self, bot):
self.bot = bot
@commands.command()
async def savethedate(self, ctx):
- """
- Gives you ideas for what to do on a date with your valentine.
- """
+ """Gives you ideas for what to do on a date with your valentine."""
+
random_date = random.choice(VALENTINES_DATES['ideas'])
emoji_1 = random.choice(HEART_EMOJIS)
emoji_2 = random.choice(HEART_EMOJIS)
@@ -41,5 +38,7 @@ class SaveTheDate(commands.Cog):
def setup(bot):
+ """Save the date Cog Load."""
+
bot.add_cog(SaveTheDate(bot))
log.info("SaveTheDate cog loaded")