Trying to link subdirectories in heroku

pull/1/head
sgoudham 5 years ago
parent 8dac9aad1f
commit f7cf36d191

@ -1,6 +1,7 @@
import asyncio import asyncio
import datetime import datetime
import random import random
from pathlib import PurePath
import discord import discord
from discord.ext import commands from discord.ext import commands
@ -107,7 +108,8 @@ class Fun(commands.Cog):
if str(ctx.channel) in channels: if str(ctx.channel) in channels:
# path = PurePath('Ensobot', 'kissing.txt') # path = PurePath('Ensobot', 'kissing.txt')
with open(str('C:/Users/sgoud/PycharmProjects/EnsoBot/images/kissing.txt')) as file: path = PurePath('C:', 'Users', 'sgoud' 'PycharmProjects', 'EnsoBot', 'images', 'kissing.txt')
with open(str(path)) as file:
kissing_array = file.readlines() kissing_array = file.readlines()
# set member as the author # set member as the author

Loading…
Cancel
Save