Closed kqee closed 1 year ago
I have found a workaround::
nest_asyncio
(with pip)nest_asyncio.apply()
in the main file# ...other imports
import nest_asyncio
nest_asyncio.apply()
# ...symbols ans whatnot
bot = commands.Bot(...)
@bot.event
async def on_ready():
await bot.load_extension("cog")
load_extension()
no longer raises an error.
apparently there was some errors in my code involving imports...i have fixed it now.
Summary
a runtime error whenever I try to load an extension(cogs)
Reproduction Steps
cog
will reside.inheriting commands.Cog
, write constructor(__init__
)Bot().load_extension(...)
method.Code
Expected Results
Bot().load_extension(...)
should load the specified file and do what it is supposed to do. Which is to handle errors in my case.Actual Results
I was greeted by the error below:
System Information
Checklist
Additional Information
No response