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