From ba3d174fdea992282e5e171e4571cd12d9dbff11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Mon, 16 Nov 2015 13:05:17 +0100 Subject: [PATCH] Change eh.start() to eh.start_polling() --- examples/eventhandler_bot.py | 2 +- examples/eventhandler_simplebot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/eventhandler_bot.py b/examples/eventhandler_bot.py index 8a1f52144..0118dde66 100644 --- a/examples/eventhandler_bot.py +++ b/examples/eventhandler_bot.py @@ -127,7 +127,7 @@ def main(): # Start the Bot and store the update Queue, # so we can insert updates ourselves - update_queue = eh.start(poll_interval=0.1, timeout=20) + update_queue = eh.start_polling(poll_interval=0.1, timeout=20) # Start CLI-Loop while True: diff --git a/examples/eventhandler_simplebot.py b/examples/eventhandler_simplebot.py index bf234a47f..bd274486d 100644 --- a/examples/eventhandler_simplebot.py +++ b/examples/eventhandler_simplebot.py @@ -62,7 +62,7 @@ def main(): bc.addErrorHandler(error) # Start the Bot - eh.start() + eh.start_polling() # Start CLI-Loop while True: