mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Compressed add_cog to for loop
This commit is contained in:
parent
1ecd790f83
commit
d576e4d6a3
1 changed files with 5 additions and 6 deletions
|
@ -28,16 +28,15 @@ def get_prefix(bot, message):
|
||||||
bot = commands.Bot(command_prefix=get_prefix, description='Experimental miscellaneous bot')
|
bot = commands.Bot(command_prefix=get_prefix, description='Experimental miscellaneous bot')
|
||||||
|
|
||||||
# Send and print ready message to #testing and console after logon
|
# Send and print ready message to #testing and console after logon
|
||||||
|
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
from cogs import booru, info, management, owner, tools
|
from cogs import booru, info, management, owner, tools
|
||||||
|
|
||||||
bot.add_cog(tools.Utils(bot))
|
for cog in (tools.Utils(bot), owner.Bot(bot), owner.Tools(bot), management.Administration(bot), info.Info(bot), booru.MsG(bot)):
|
||||||
bot.add_cog(owner.Bot(bot))
|
bot.add_cog(cog)
|
||||||
bot.add_cog(owner.Tools(bot))
|
print(f'COG : {type(cog).__name__}')
|
||||||
bot.add_cog(management.Administration(bot))
|
|
||||||
bot.add_cog(info.Info(bot))
|
|
||||||
bot.add_cog(booru.MsG(bot))
|
|
||||||
|
|
||||||
# bot.loop.create_task(u.clear(booru.temp_urls, 30*60))
|
# bot.loop.create_task(u.clear(booru.temp_urls, 30*60))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue