def on_ready(self):
""" A listener for the event in which the bot is ready to work.
"""
lib.log("")
lib.log("Using discord.py version: " + discord.__version__)
lib.log("Logged in as :")
lib.log("\t" + self.bot.user.name)
lib.log("\t" + self.bot.user.id)
lib.log("")
await self.bot.update_status()
message = "**[{}]** {}"\
.format(config.get_config().get_str('version'),
config.get_config().get_str('startup_msg'))
for server in self.bot.servers:
await self.bot.send_message(server, message)
评论列表
文章目录