mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 01:16:21 +00:00
[commads] Change cog/extension load/unload methods to be async
This commit is contained in:
@ -137,5 +137,9 @@ async def on_ready():
|
||||
print(f'Logged in as {bot.user} (ID: {bot.user.id})')
|
||||
print('------')
|
||||
|
||||
bot.add_cog(Music(bot))
|
||||
bot.run('token')
|
||||
async def main():
|
||||
async with bot:
|
||||
await bot.add_cog(Music(bot))
|
||||
await bot.start('token')
|
||||
|
||||
asyncio.run(main())
|
||||
|
Reference in New Issue
Block a user