Trying to link subdirectories in heroku

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

@ -1,7 +1,6 @@
import asyncio import asyncio
import datetime import datetime
import random import random
from pathlib import PureWindowsPath
import discord import discord
from discord.ext import commands from discord.ext import commands
@ -104,12 +103,11 @@ class Fun(commands.Cog):
channels = ["bot-commands", "picto-chat", "general"] channels = ["bot-commands", "picto-chat", "general"]
try: try:
if str(ctx.channel) in channels: if str(ctx.channel) in channels:
path = PureWindowsPath(r'C:\Users\sgoud\PycharmProjects\EnsoBot\images\kissing.txt') # path = PurePath('Ensobot', 'kissing.txt')
with open(str(path)) as file: with open(str('C:/Users/sgoud/PycharmProjects/EnsoBot/images/kissing.txt')) as file:
kissing_array = file.readlines() kissing_array = file.readlines()
# set member as the author # set member as the author

Loading…
Cancel
Save