diff --git a/pyproject.toml b/pyproject.toml index d5133fe..8dd70d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ allow-direct-references = true [project] name = "matrix-gptbot" -version = "0.3.2" +version = "0.3.3-dev" authors = [ { name="Kumi Mitterer", email="gptbot@kumi.email" }, diff --git a/src/gptbot/classes/bot.py b/src/gptbot/classes/bot.py index 8a45d2b..f8262ef 100644 --- a/src/gptbot/classes/bot.py +++ b/src/gptbot/classes/bot.py @@ -816,6 +816,9 @@ class GPTBot: self.matrix_client.config = client_config # Run initial sync (includes joining rooms) + + self.logger.log("Running initial sync...", "debug") + sync = await self.matrix_client.sync(timeout=30000, full_state=True) if isinstance(sync, SyncResponse): await self.response_callback(sync) @@ -825,6 +828,8 @@ class GPTBot: # Set up callbacks + self.logger.log("Setting up callbacks...", "debug") + self.matrix_client.add_event_callback(self.event_callback, Event) self.matrix_client.add_response_callback(self.response_callback, Response)