async def on_ready(self): if self.is_first_ready: self.is_first_ready = False text1 = f"Logged in as {self.bot.user.name} (ID: {self.bot.user.id})" text2 = f"Using discord.py {discord.__version__}" text3 = f"You are running IdleRPG Bot {self.bot.version}" text4 = "Created by Adrian#1337 and Mary Johanna#0420" max_string = max([len(i) for i in (text1, text2, text3, text4)]) self.bot.logger.info(f"┌─{'─' * max_string}─┐") self.bot.logger.info(f"│ {text1.center(max_string, ' ')} │") self.bot.logger.info(f"│ {' ' * max_string} │") self.bot.logger.info(f"│ {text2.center(max_string, ' ')} │") self.bot.logger.info(f"│ {' ' * max_string} │") self.bot.logger.info(f"│ {text3.center(max_string, ' ')} │") self.bot.logger.info(f"│ {' ' * max_string} │") self.bot.logger.info(f"│ {text4.center(max_string, ' ')} │") self.bot.logger.info(f"└─{'─' * max_string}─┘") await self.load_settings() self.bot.loop.create_task(queue_manager(self.bot, self.bot.queue)) self.stats_updates = self.bot.loop.create_task( self.stats_updater()) await self.bot.is_owner(self.bot.user) # force getting the owners await self.reschedule_reminders() self.bot.schedule_manager.start() else: self.bot.logger.warning("[INFO] Discord fired on_ready...")
async def on_ready(): print(f"Logged in as {bot.user.name} (ID: {bot.user.id})") print("--------") print(f"Using discord.py {discord.__version__}") print("--------") print(f"You are running IdleRPG Bot {bot.version}") owner = (await bot.application_info()).owner bot.owner_id = owner.id print(f"Created by {owner}") bot.loop.create_task(queue_manager(bot, bot.queue))
async def on_ready(self): print(f"Logged in as {self.bot.user.name} (ID: {self.bot.user.id})") print("--------") print(f"Using discord.py {discord.__version__}") print("--------") print(f"You are running IdleRPG Bot {self.bot.version}") print("Created by The IdleRPG Team") await self.load_settings() self.bot.loop.create_task(queue_manager(self.bot, self.bot.queue)) await self.bot.is_owner(self.bot.user.id) # force getting the owners await self.status_updater()
async def on_ready(self): print(f"Logged in as {self.bot.user.name} (ID: {self.bot.user.id})") print("--------") print(f"Using discord.py {discord.__version__}") print("--------") print(f"You are running IdleRPG Bot {self.bot.version}") owner = (await self.bot.application_info()).owner self.bot.owner_id = owner.id print(f"Created by {owner}") await self.load_settings() self.bot.loop.create_task(queue_manager(self.bot, self.bot.queue)) await self.status_updater()