Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot is failing to start #5

Closed
save-lalatina opened this issue May 21, 2023 · 2 comments
Closed

Bot is failing to start #5

save-lalatina opened this issue May 21, 2023 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@save-lalatina
Copy link

Can't start the bot after deployed to Railway.

Here is the error:

Traceback (most recent call last):
  File "bot.py", line 9, in <module>
    from Utils.Bot import Logger, Functions
  File "Utils\Bot\Functions.py", line 13, in <module>
    def slash_command_log(ctx: discord.ApplicationContext, command: str) -> None:
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'discord' has no attribute 'ApplicationContext'
@jokelbaf jokelbaf added bug Something isn't working help wanted Extra attention is needed labels May 21, 2023
@jokelbaf
Copy link
Owner

On Railway go to Bot Project > Settings.

Find Build command field and paste the following command there:

pip uninstall -y discord.py && pip uninstall -y py-cord && pip install py-cord

This erorr occurs cause wavelink added discord.py library to the list of it's dependencies and this bot is written for py-cord. I'll update deploy instruction in readme. Thanks for your issue.

@save-lalatina
Copy link
Author

Everything is working now! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants