Discord Bot no starts
hello, i try to host my discord bot in railway but cant connect, the log only send "ModuleNotFoundError: No Module named 'discord'" message, need some help, ty
29 Replies
Project ID:
06970eaf-0027-4fe8-b1f6-f4cbf37cdd13
06970eaf-0027-4fe8-b1f6-f4cbf37cdd13
Are you using discord.js?
nvm
python
whoops
no, im using discord.py
do you have a requirements.txt file with all the dependencies in the repo?
yep, i use "pip freeze > requeriments.txt"
and i commit to repo
may i see your build command?
its on the service settings
ok, on that custom build command
put
pip install -r requirements.txt
ok, its building
but give me error
same one?
type error, my bad
np
nop, give me the same error
.
Please send your repo
GitHub
GitHub - crp1tlswus7ei/ellayOs_Beta
Contribute to crp1tlswus7ei/ellayOs_Beta development by creating an account on GitHub.
your requirements.txt file is misspelled
So Railway is not installing your requirements
please change the name to "requirements.txt"
Also, you are using youtube-dl, which is not allowed on Railway according to their TOS
You will need to remove both youtube-dl and yt-dlp to host your app on Railway
i understand, i check this and deploy again
you may have skipped over the last few things Adam said
No, they didn't. They've updated their requirements.txt
I did everything and now it works
its active
i think brody meant the yt-dl stuff
i solve my problem
glad to know we could help :)
Yep, they changed that before they changed the file name
oh, nice!
thank you all
np