demobot fixes
This commit is contained in:
parent
9997aa48f1
commit
87ffdd7bb3
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue