demobot fixes

This commit is contained in:
saces 2026-03-10 23:24:16 +01:00
parent 9997aa48f1
commit 87ffdd7bb3

View file

@ -20,7 +20,7 @@ class DemoBot(SMALBot):
print("Got a system notification: ", ntf) print("Got a system notification: ", ntf)
def on_event(self, evt): def on_event(self, evt):
print("Got an event: ", e) print("Got an event: ", evt)
def on_message(self, msg): def on_message(self, msg):
@ -40,7 +40,7 @@ class DemoBot(SMALBot):
return return
if msg["content"]["body"] == "!stop": if msg["content"]["body"] == "!stop":
logger.info(f"stopping the bot") logger.info("stopping the bot")
self.stop() self.stop()
return return