Put boot log send message in loop task #243
This commit is contained in:
parent
22d26bf032
commit
d1420d18c0
@ -68,10 +68,12 @@ class BootLogOnReadyEvent(OnReadyABC):
|
|||||||
self._logger.error(__name__, f"Config {type(self).__name__}_{g.id} not found!")
|
self._logger.error(__name__, f"Config {type(self).__name__}_{g.id} not found!")
|
||||||
return
|
return
|
||||||
|
|
||||||
await self._message_service.send_channel_message(
|
self._bot.loop.create_task(
|
||||||
|
self._message_service.send_channel_message(
|
||||||
self._bot.get_channel(module_settings.login_message_channel_id),
|
self._bot.get_channel(module_settings.login_message_channel_id),
|
||||||
self._t.transform("modules.boot_log.login_message").format(init_time),
|
self._t.transform("modules.boot_log.login_message").format(init_time),
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
self._config.add_configuration("IS_READY", "true")
|
self._config.add_configuration("IS_READY", "true")
|
||||||
self._logger.info(__name__, "Bot is ready")
|
self._logger.info(__name__, "Bot is ready")
|
||||||
|
Loading…
Reference in New Issue
Block a user