diff options
| author | 2018-10-14 17:56:21 +0530 | |
|---|---|---|
| committer | 2018-10-14 17:56:21 +0530 | |
| commit | 394b3a29ce6106bbc841d3377724180d85001788 (patch) | |
| tree | 77c94655dc9210410989934c213b2bdcf46c82cc /bot/cogs/halloweenify.py | |
| parent | Merge pull request #34 from markylon/master (diff) | |
| parent | Issue #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.py | 9 |
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. |