diff options
author | 2018-10-12 15:43:34 -0700 | |
---|---|---|
committer | 2018-10-12 15:43:34 -0700 | |
commit | d6051c5e8ef1a20b0833e67f75c5367df12e5622 (patch) | |
tree | 92ec894452eb4068a0553d531ac1515fb2d41ca8 /bot/cogs/halloweenify.py | |
parent | Fixed linting: Multiple imports on single line. (diff) | |
parent | The app was logging to the wrong directory. This is now fixed. Also silenced ... (diff) |
Merge branch 'master' of https://github.com/discord-python/hacktoberbot into vote-monster-refactor
Diffstat (limited to 'bot/cogs/halloweenify.py')
-rw-r--r-- | bot/cogs/halloweenify.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/cogs/halloweenify.py b/bot/cogs/halloweenify.py index 201f6b95..a5fe45ef 100644 --- a/bot/cogs/halloweenify.py +++ b/bot/cogs/halloweenify.py @@ -2,14 +2,12 @@ from json import load from pathlib import Path from random import choice - import discord from discord.ext import commands from discord.ext.commands.cooldowns import BucketType class Halloweenify: - """ A cog to change a invokers nickname to a spooky one! """ @@ -20,7 +18,10 @@ class Halloweenify: @commands.cooldown(1, 300, BucketType.user) @commands.command() async def halloweenify(self, ctx): - with open(Path('../bot/resources', 'halloweenify.json'), 'r') as f: + """ + Change your nickname into a much spookier one! + """ + with open(Path('./bot/resources', 'halloweenify.json'), 'r') as f: data = load(f) # Choose a random character from our list we loaded above and set apart the nickname and image url. |