aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/magic_8ball.py
diff options
context:
space:
mode:
authorGravatar Vincent Gross <[email protected]>2019-07-09 17:45:40 -0400
committerGravatar GitHub <[email protected]>2019-07-09 17:45:40 -0400
commit9353a79753a2d5f9fb98fec21b2bd2e8e2248167 (patch)
tree566d5876b7e9ae508b7af696ea18bc73b595e22c /bot/seasons/evergreen/magic_8ball.py
parentRelock Pipfile. (diff)
parentChanging id of terning4 to the correct one (diff)
Merge branch 'master' into dpy-1.2
Diffstat (limited to 'bot/seasons/evergreen/magic_8ball.py')
-rw-r--r--bot/seasons/evergreen/magic_8ball.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bot/seasons/evergreen/magic_8ball.py b/bot/seasons/evergreen/magic_8ball.py
index 0b4eeb62..55652af7 100644
--- a/bot/seasons/evergreen/magic_8ball.py
+++ b/bot/seasons/evergreen/magic_8ball.py
@@ -13,12 +13,12 @@ class Magic8ball(commands.Cog):
def __init__(self, bot):
self.bot = bot
- with open(Path("bot", "resources", "evergreen", "magic8ball.json"), "r") as file:
+ with open(Path("bot/resources/evergreen/magic8ball.json"), "r") as file:
self.answers = json.load(file)
@commands.command(name="8ball")
async def output_answer(self, ctx, *, question):
- """Return a magic 8 ball answer from answers list."""
+ """Return a Magic 8ball answer from answers list."""
if len(question.split()) >= 3:
answer = random.choice(self.answers)
await ctx.send(answer)
@@ -27,7 +27,6 @@ class Magic8ball(commands.Cog):
def setup(bot):
- """Magic 8ball cog load."""
-
+ """Magic 8ball Cog load."""
bot.add_cog(Magic8ball(bot))
log.info("Magic8ball cog loaded")