fix: make bot initializable without recorder

This commit is contained in:
2025-10-24 22:28:50 +02:00
parent fa61e27825
commit 97f9765705
2 changed files with 15 additions and 4 deletions

View File

@@ -27,7 +27,8 @@ def main():
app: QApplication = QApplication(sys.argv)
recorder: RecorderWindow = RecorderWindow("localhost", 5000)
bot: ExampleBot = ExampleBot(recorder)
bot: ExampleBot = ExampleBot()
bot.set_recorder(recorder)
app.aboutToQuit.connect(recorder.shutdown)
recorder.register_bot(bot)