Trying to link subdirectories in heroku

pull/1/head
sgoudham 5 years ago
parent 510c6e085a
commit c89f35cbbe

@ -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

Loading…
Cancel
Save