#KeyError: 'cogs.tools.ping'
1 messages · Page 1 of 1 (latest)
Try use await bot.load_extension(...)
for extension in disnake.utils.search_directory("cogs"):
try:
bot.load_extension(extension)
except Exception as error:
errors = traceback.format_exception(type(error), error, error.__traceback__)
print(errors)```
and show errors
This error cannot be caught. When starting the bot, this error does not appear, but after the bot is shut down, this error appears.