From 56c740e17046ef407549a498120ec9cc86285011 Mon Sep 17 00:00:00 2001 From: Niharika Kohli Date: Wed, 14 Dec 2016 22:59:27 +0530 Subject: [PATCH] Up the time limit for IRC listener bot restart to accomodate for cswiki --- IRCRCListener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRCRCListener.py b/IRCRCListener.py index 7c6c2e5..5b82373 100644 --- a/IRCRCListener.py +++ b/IRCRCListener.py @@ -99,7 +99,7 @@ def irc_rc_listener(site, filter_gen=None): try: element = irc_thread.irc_bot.queue.get(timeout=0.1) except Empty: - if (datetime.now()-irc_thread.irc_bot.last_msg).seconds > 500: + if (datetime.now()-irc_thread.irc_bot.last_msg).seconds > 1000: pywikibot.output('Missing updates for long time. Restarting....') try: irc_thread.stop()