I ran into some problems. i followed your instructions to the T but when i run any command on it, it returns "The application did not respond" in the discord. and in my server i get this:
(f1-bot-py3.11) ➜ f1-bot git:(main) python -m main
2024-05-11 15:05:04,032 f1-bot: WARNING Starting bot...
2024-05-11 15:07:21,868 f1-bot: INFO Bot ready...
Ignoring exception in on_application_command
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/f1-bot-B14iebfd-py3.11/lib/python3.11/site-packages/discord/client.py", line 378, in _run_event
await coro(*args, **kwargs)
File "/root/discordbot/f1-bot/f1/commands.py", line 82, in on_application_command
handle_command(ctx)
File "/root/discordbot/f1-bot/f1/commands.py", line 43, in handle_command
logger.info(f"Command: /{ctx.command} in {ctx.guild.name} {ctx.channel} by {ctx.user}")
^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name
I would appreciate the help.
EDIT: ok i solved this.
but still getting error when doing /career 16
python -m main
2024-05-11 21:29:13,409 f1-bot: WARNING Starting bot...
2024-05-11 21:29:16,704 f1-bot: INFO Bot ready...
2024-05-11 21:29:34,424 f1-bot: INFO Command: /career in test f1 by test#0
2024-05-11 21:29:34,501 f1-bot: ERROR Command failed: /career in test f1 by test#0
2024-05-11 21:29:34,501 f1-bot: ERROR Selected Options: [{'value': 'lec', 'type': 3, 'name': 'driver'}]
2024-05-11 21:29:34,501 f1-bot: ERROR Reason: Application Command raised an exception: ProgrammingError: Cannot operate on a closed database.```
Hi, Thnx for the great work.
I ran into some problems. i followed your instructions to the T but when i run any command on it, it returns "The application did not respond" in the discord. and in my server i get this:
I would appreciate the help.
EDIT: ok i solved this. but still getting error when doing /career 16