aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-04-24 21:57:32 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-04-24 21:57:32 +0200
commitfbb7e1d07f20133732cfeab5887f8fee8f1f91ad (patch)
tree02b8c2b55c7741a78a5624c62130332166fbc9e5
parentFix main thread exit condition (diff)
downloadhchat-tg-bridge-master.tar.gz
hchat-tg-bridge-master.zip
remove error msg in telegram when disconnectedHEADmaster
-rwxr-xr-xcontrol.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/control.py b/control.py
index 0215655..dd08d49 100755
--- a/control.py
+++ b/control.py
@@ -125,14 +125,14 @@ def botCrashed(signum, frame):
log("=!= Bot crashed / lost connection. Retrying in %i seconds..."\
% config.RECONNECT_DELAY, suppress_console=False)
- toTG("=!= Bot crashed / lost connection. Retrying in %i seconds..."\
- % config.RECONNECT_DELAY)
+ #toTG("=!= Bot crashed / lost connection. Retrying in %i seconds..."\
+ # % config.RECONNECT_DELAY)
time.sleep(config.RECONNECT_DELAY)
log("Reconnecting...", suppress_console=False)
- toTG("Reconnecting...")
+ #toTG("Reconnecting...")
startHCBot()
log("Reconnected!", suppress_console=False)
- toTG("Reconnected!")
+ #toTG("Reconnected!")
def kill():
"""Debug command to test reconnect functionality"""