Traceback (most recent call last):
File "C:\Users\volva\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 606, in _load_from_module_spec
spec.loader.exec_module(lib)
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "C:\Users\volva\Desktop\botTest\cogs\deleted.py", line 5, in <module>
class Deleted(commands.Cog):
NameError: name 'commands' is not defined
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\volva\Desktop\botTest\bot.py", line 42, in <module>
client.load_extension(f"cogs.{filename[:-3]}")
File "C:\Users\volva\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 678, in load_extension
self._load_from_module_spec(spec, name)
File "C:\Users\volva\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 609, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.deleted' raised an error: NameError: name 'commands' is not defined
Press any key to continue . . .
class Deleted(commands.Cog):
Я просто не вставил его.