Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/usr/local/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 580, in _load_from_module_spec
  3. setup(self)
  4. File "/home/pi/RulesBot/modules/reactions.py", line 121, in setup
  5. bot.add_cog(ReactionsCog(bot))
  6. File "/usr/local/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 480, in add_cog
  7. raise TypeError('cogs must derive from Cog')
  8. TypeError: cogs must derive from Cog
  9.  
  10. The above exception was the direct cause of the following exception:
  11.  
  12. Traceback (most recent call last):
  13. File "main.py", line 123, in <module>
  14. main()
  15. File "main.py", line 105, in main
  16. client = generate_client(loop)
  17. File "main.py", line 78, in generate_client
  18. client.load_extension(module)
  19. File "/usr/local/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 625, in load_extension
  20. self._load_from_module_spec(lib, name)
  21. File "/usr/local/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 584, in _load_from_module_spec
  22. raise errors.ExtensionFailed(key, e) from e
  23. discord.ext.commands.errors.ExtensionFailed: Extension 'modules.reactions' raised an error: TypeError: cogs must derive from Cog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement