-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug report #2
Comments
There was a major problem with the API calls and error handling, but I have fixed it in v0.1.2. I tested it and found no further errors; hopefully, it stays that way. The slash commands should now have autocompletion. If you set the GUILD_ID correctly, you can use '>sync'. If this doesn’t work, try running the following commands: >clean
>commands
>sync After that, you should be able to use commands like /stats. |
But amazing work!! |
Thank you very much! |
OK that worked for me, thank you and nice work |
So, to help you a bit, idk if the m,istake is on my side or not but here is a quick copy paste of my bot who gets an error with the crafty commands like "list, start, stop"
2024-11-30 20:09:07 INFO discord.client logging in using static token
2024-11-30 20:09:08 INFO discord.gateway Shard ID None has connected to Gateway (Session ID: ec91a0e9ca8b79d541cf0c172f0a24eb).
Bot is ready. Renny_Bot#2168
Crafty Bot version 0.1.1
Server URL: 192.168.2.188:8443
GUILD ID: 1306542177492402247
auto stop disabled
commands
servers
2024-11-30 20:10:57 ERROR discord.client Ignoring exception in on_command_error
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/discord/client.py", line 449, in _run_event
await coro(*args, **kwargs)
File "/usr/src/app/./core/main.py", line 272, in on_command_error
if isinstance(error, commands.CommandNotFound):
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HybridCommand' object has no attribute 'CommandNotFound'
sync
servers
2024-11-30 20:11:33 ERROR discord.client Ignoring exception in on_command_error
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/discord/client.py", line 449, in _run_event
await coro(*args, **kwargs)
File "/usr/src/app/./core/main.py", line 272, in on_command_error
if isinstance(error, commands.CommandNotFound):
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HybridCommand' object has no attribute 'CommandNotFound'
start
The text was updated successfully, but these errors were encountered: