Gorialis / jishaku

A debugging and testing cog for discord.py rewrite bots.
https://jishaku.readthedocs.io/en/latest/
MIT License
541 stars 179 forks source link

Cog already loaded when loading it #208

Closed kellyaka closed 1 year ago

kellyaka commented 1 year ago

Summary

When i was tryin to load/Reload a Cog it says its alreaedy loaded but when i tried to unload it it said its not loaded but when i try again loading same errro

Reproduction steps

idk honestly

Expected results

i expected for the Cog to load/reload when i tried loading/reloadin and unload when i try to unload

Actual results

i explained it in sumery

Checklist

System information

image

Gorialis commented 1 year ago

The error describes exactly what it takes issue with - there is a cog called LevelingSystem already loaded somewhere in your bot. It does not have to be part of the same extension/file - you likely have two cogs named the same thing in different files, which discord.py does not allow.

You can figure out where your culprit resides by doing jsk py _bot.cogs['LevelingSystem'].__module__.