diff options
| author | 2019-03-30 10:40:38 -0400 | |
|---|---|---|
| committer | 2019-03-30 10:42:02 -0400 | |
| commit | 095dc1791f147682023edafc59abdc4019074eeb (patch) | |
| tree | 160d7ee160042befbfba778e54507a5eee3bd686 /bot/seasons/valentines/savethedate.py | |
| parent | Merge branch 'master' into hotfix (diff) | |
| parent | Merge pull request #146 from python-discord/flake8-docstring (diff) | |
Merge branch 'master' into hotfix
Diffstat (limited to 'bot/seasons/valentines/savethedate.py')
| -rw-r--r-- | bot/seasons/valentines/savethedate.py | 13 |
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") |