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