jakehlee / JDG-Cogs-V3

Cogs for Red-DiscordBot V3 by JDG
GNU General Public License v3.0
0 stars 2 forks source link

Not compatible with v3.5 redbot #15

Closed Ginpachi98 closed 1 year ago

Ginpachi98 commented 1 year ago

It throws this error when loaded, which is problem with many other cogs.

"Exception during loading of package Traceback (most recent call last): File "/data/venv/lib/python3.11/site-packages/redbot/core/core_commands.py", line 188, in _load await bot.load_extension(spec) File "/data/venv/lib/python3.11/site-packages/redbot/core/bot.py", line 1686, in load_extension await lib.setup(self) TypeError: object NoneType can't be used in 'await' expression "

Ginpachi98 commented 1 year ago

It works with this init.py:

from .wordle import Wordle

async def setup(bot):
    cog = Wordle(bot)
    await bot.add_cog(cog)