From c89f35cbbe4dcd8ef82852749d686b139b4328d3 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 7 Jun 2020 00:58:19 +0100 Subject: [PATCH] Trying to link subdirectories in heroku --- cogs/FunCommands.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cogs/FunCommands.py b/cogs/FunCommands.py index d0aab9a3..18a36199 100644 --- a/cogs/FunCommands.py +++ b/cogs/FunCommands.py @@ -1,7 +1,6 @@ import asyncio import datetime import random -from pathlib import PureWindowsPath import discord from discord.ext import commands @@ -104,12 +103,11 @@ class Fun(commands.Cog): channels = ["bot-commands", "picto-chat", "general"] - try: if str(ctx.channel) in channels: - path = PureWindowsPath(r'C:\Users\sgoud\PycharmProjects\EnsoBot\images\kissing.txt') - with open(str(path)) as file: + # path = PurePath('Ensobot', 'kissing.txt') + with open(str('C:/Users/sgoud/PycharmProjects/EnsoBot/images/kissing.txt')) as file: kissing_array = file.readlines() # set member as the author