aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/halloweenify.py
diff options
context:
space:
mode:
authorGravatar Sourab Jha <[email protected]>2018-10-14 17:56:21 +0530
committerGravatar GitHub <[email protected]>2018-10-14 17:56:21 +0530
commit394b3a29ce6106bbc841d3377724180d85001788 (patch)
tree77c94655dc9210410989934c213b2bdcf46c82cc /bot/cogs/halloweenify.py
parentMerge pull request #34 from markylon/master (diff)
parentIssue #15 Feature pull request template (#49) (diff)
Merge pull request #1 from discord-python/master
Merge
Diffstat (limited to 'bot/cogs/halloweenify.py')
-rw-r--r--bot/cogs/halloweenify.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bot/cogs/halloweenify.py b/bot/cogs/halloweenify.py
index 8a9db3df..a5fe45ef 100644
--- a/bot/cogs/halloweenify.py
+++ b/bot/cogs/halloweenify.py
@@ -1,15 +1,13 @@
-from pathlib import Path
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.