aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2016-09-26 13:39:09 -0700
committerRyan Huber <rhuber@gmail.com>2016-09-26 13:39:09 -0700
commitd16bc5bb049e46a6780e6ebf9363f95771926725 (patch)
treeb4137af02a32982793ede41a5c956ca963c5e6d4 /wee_slack.py
parentf6275124d60df37415c35e35ed05dec6c59888f7 (diff)
downloadwee-slack-d16bc5bb049e46a6780e6ebf9363f95771926725.tar.gz
rushjob unfucked
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index fc62b2d..a4aedc7 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -213,14 +213,14 @@ class SlackServer(object):
has been 65 seconds consider the attempt dead and try again
"""
if self.connection_attempt_time == 0 or self.connection_attempt_time + 65 > int(time.time()):
- return true
+ return True
else:
- return false
+ return False
def connect_to_slack(self):
t = time.time()
#Double check that we haven't exceeded a long wait to connect and try again.
- if self.connecting == True and should_connect():
+ if self.connecting and should_connect():
self.connecting = False
if not self.connecting:
async_slack_api_request("slack.com", self.token, "rtm.start", {"ts": t})