#Cannot find file or directory with Discord Bot.

15 messages · Page 1 of 1 (latest)

grizzled timber
#

I've done most of what I can to try and fix this issue. I reached out to the support team here and I was able to get some help with finding a json file. For some reason it just couldn't be in a folder and it needed to be in the base directory.

But now I'm getting an issue with my folder for cogs. Whenever I start the bot, I get

07.07 16:26:28 [Bot] File "/Coldbot.py", line 41, in load
07.07 16:26:28 [Bot] for filename in os.listdir("/cogs"):
07.07 16:26:28 [Bot] ^^^^^^^^^^^^^^^^^^^
07.07 16:26:28 [Bot] FileNotFoundError: [Errno 2] No such file or directory: '/cogs'

I have never had this issue before with Pebblehost and finding the file or directory. I was able to make this bot locally with no issues finding the files or directories. After returning to Pebblehost, it just can't find anything.

Does anyone know how to fix this?

grizzled timber
woeful geode
#

Sry nvm

#

Do not put a / in front of the dir name

#

It refers to the root dir

grizzled timber
#

This is what I did earlier when talking to support and it was still giving me issues.

#

Went and did this again just now and everything is working.

#

Thank you. 🙏

woeful geode
grizzled timber
#

No? hyperthinking

woeful geode
#

sry