summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--taulubot.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/taulubot.py b/taulubot.py
index ae8a9b8..6b9c1a2 100644
--- a/taulubot.py
+++ b/taulubot.py
@@ -136,8 +136,6 @@ def handle(msg):
logging.warning("Listening...")
-MessageLoop(bot, handle).run_as_thread()
-
-# Keep the program running.
-while 1:
- time.sleep(1)
+MessageLoop(bot, handle).run_forever(
+ allowed_updates=["message"],
+)