PS Z:\Lukas\Studio Code\DeserrtTemple Bot> python main.py
2024-02-17 20:31:08 INFO discord.client logging in using static token
2024-02-17 20:31:09 INFO discord.gateway Shard ID None has connected to Gateway (Session ID: be1a80016540fdf46c7c4bb08020dd8f).
Der Bot ist online!
2024-02-17 20:31:38 ERROR discord.ext.commands.bot Ignoring exception in command count
Traceback (most recent call last):
File "C:\Users\Tanja und Jochen\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Z:\Lukas\Studio Code\DeserrtTemple Bot\main.py", line 129, in count_
await message.channel.send(f'Aktueller Zählerwert: {count}')
^^^^^^^
NameError: name 'message' is not defined. Did you mean: 'on_message'?
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Tanja und Jochen\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\bot.py", line 1350, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\Tanja und Jochen\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 1029, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Tanja und Jochen\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 244, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: NameError: name 'message' is not defined
2024-02-17 20:31:42 ERROR discord.ext.commands.bot Ignoring exception in command None