From a8b05759a76545d0fe1575f99b94fbbd4cc3c498 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 4 Jun 2020 20:34:39 +0100 Subject: [PATCH] Trying to get bot online with no errors --- cogs/FunCommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/FunCommands.py b/cogs/FunCommands.py index 8d50d3c1..578388eb 100644 --- a/cogs/FunCommands.py +++ b/cogs/FunCommands.py @@ -96,7 +96,7 @@ class Fun(commands.Cog): channels = ["bot-commands"] path = pathlib.Path(r'C:\Users\sgoud\PycharmProjects\EnsoBot\txtfiles\eightball.txt') - with open(path, mode='r') as file: + with open(path) as file: _8ball_array = file.readlines() if str(ctx.channel) in channels: