Advertisement
swimmerhair

Swimbot Error

Dec 6th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.85 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "C:\Users\swimm\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\bot.py", line 607, in _load_from_module_spec
  3.     spec.loader.exec_module(lib)
  4.   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  5.   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  6.   File "c:\Users\swimm\OneDrive\Desktop\Swimbot\premium.py", line 252, in <module>
  7.     class PremiumAdminCog(commands.Cog,name="Premium Features Admin"):
  8.   File "c:\Users\swimm\OneDrive\Desktop\Swimbot\premium.py", line 270, in PremiumAdminCog
  9.     @premium.group()
  10. AttributeError: 'Command' object has no attribute 'group'
  11.  
  12. The above exception was the direct cause of the following exception:
  13.  
  14. Traceback (most recent call last):
  15.   File "c:\Users\swimm\OneDrive\Desktop\Swimbot\SwimBot.py", line 35, in load
  16.     bot.load_extension(extension_name)
  17.   File "C:\Users\swimm\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\bot.py", line 664, in load_extension
  18.     self._load_from_module_spec(spec, name)
  19.   File "C:\Users\swimm\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\bot.py", line 610, in _load_from_module_spec
  20.     raise errors.ExtensionFailed(key, e) from e
  21. discord.ext.commands.errors.ExtensionFailed: Extension 'premium' raised an error: AttributeError: 'Command' object has no attribute 'group'
  22.  
  23. During handling of the above exception, another exception occurred:
  24.  
  25. Traceback (most recent call last):
  26.   File "C:\Users\swimm\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
  27.     ret = await coro(*args, **kwargs)
  28.   File "c:\Users\swimm\OneDrive\Desktop\Swimbot\SwimBot.py", line 47, in load
  29.     # traceback.print_exception(type(error), error, error.__traceback__)
  30. NameError: name 'error' is not defined
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement