Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot run my bot. #9181

Closed
3 tasks done
lostinfinite opened this issue Jan 15, 2023 · 1 comment
Closed
3 tasks done

I cannot run my bot. #9181

lostinfinite opened this issue Jan 15, 2023 · 1 comment
Labels
invalid This is not right.

Comments

@lostinfinite
Copy link

Summary

The new update is causing this error. discord.ext.commands.errors.ExtensionNotFound: Extension 'cogs.cog_example' could not be loaded.

Reproduction Steps

I tried to import cogs.cogs_example. discord.ext.commands.errors.ExtensionNotFound: Extension 'cogs.cog_example' could not be loaded.

Minimal Reproducible Code

extensions = ['cogs.cog_example', 'cogs.other_cog']
async def load_extensions():
    for extension in extensions:
        await bot.load_extension(extension)

if __name__ == '__main__':  # Ensures this is the file being ran
    loop = asyncio.get_event_loop()
    loop.run_until_complete(load_extensions())
    loop.run_until_complete(bot.start('TOKEN'))

Expected Results

the bot to run

Actual Results

discord.ext.commands.errors.ExtensionNotFound: Extension 'cogs.cog_example' could not be loaded.

Intents

intents = discord.Intents.default() intents.messages = True bot = commands.Bot(command_prefix='/', intents=intents)

System Information

  • Python v3.9.2-final
  • discord.py v2.2.0-alpha
    • discord.py metadata: v2.2.0a0
  • aiohttp v3.7.4.post0
  • system info: Linux 5.10.147-20158-g0a75306e5639 Fix issue with author changing type #1 SMP PREEMPT Sun Nov 27 20:52:05 PST 2022

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

@lostinfinite lostinfinite added the unconfirmed bug A bug report that needs triaging label Jan 15, 2023
@Rapptz Rapptz added invalid This is not right. and removed unconfirmed bug A bug report that needs triaging labels Jan 15, 2023
@Rapptz
Copy link
Owner

Rapptz commented Jan 15, 2023

That exception is raised by the library when something in your code raises an error during loading. You're suppressing the chained exception so it's not possible to provide more help. For help with the library please go to the official server instead.

@Rapptz Rapptz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This is not right.
Projects
None yet
Development

No branches or pull requests

2 participants