Skip to content

Demonstating a bug in Pycord where passing an event loop to the constructed bot causes the given `tasks` recipes to fail

License

Notifications You must be signed in to change notification settings

gregdan3/pycord-bug-2023-06-05

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pycord documentation fault

Steps to Reproduce

  1. Set up a cog with a task as the documentation specifies
  2. Construct the bot with your own event loop:
LOOP = asyncio.new_event_loop()
BOT = commands.Bot(
    loop=LOOP,
    command_prefix="/",
)
  1. Run the bot: pdm run python -m example or pdm run python ./src/example/__main__.py
  2. Observe that BrokenCog never logs after it initializes

Also note that removing the user-added event loop fixes the issue, but may not be desirable to some users needing an event loop for other work before they initialize the bot.

About

Demonstating a bug in Pycord where passing an event loop to the constructed bot causes the given `tasks` recipes to fail

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published