From 90462da71ad56643dd3c986acdd66390f51d280b Mon Sep 17 00:00:00 2001 From: Louis Chauvet Date: Sat, 4 Jul 2020 11:15:25 +0200 Subject: [PATCH] =?UTF-8?q?[module]=20Attente=20du=20d=C3=A9marrage=20du?= =?UTF-8?q?=20bot=20pour=20envoyer=20le=20ready=20[version]=20bump?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 2 ++ infos.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 12ebedc..c8285c6 100644 --- a/__init__.py +++ b/__init__.py @@ -42,6 +42,8 @@ class Logging(BaseModule): try: await channel.send(f"New {title.lower()} - {h[2:8]}:") for embed in embeds: + while not self.client.is_ready: + await asyncio.sleep(1) await channel.send(embed=embed) except: # TODO: C'est pas beau mais il ne faut absolument pas lever une exception pour éviter les récursions infinies print(traceback.format_exc()) diff --git a/infos.toml b/infos.toml index 7c0d311..f67f10b 100644 --- a/infos.toml +++ b/infos.toml @@ -7,4 +7,4 @@ bot_version = "~=0.1.0" metamodule = false [dependencies] -mod_base = "~=1.0.0" \ No newline at end of file +mod_base = ">=1.0.0" \ No newline at end of file