aboutsummaryrefslogtreecommitdiffstats
path: root/warmachine/connections/slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'warmachine/connections/slack.py')
-rwxr-xr-x[-rw-r--r--]warmachine/connections/slack.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/warmachine/connections/slack.py b/warmachine/connections/slack.py
index 684aea3..7585c74 100644..100755
--- a/warmachine/connections/slack.py
+++ b/warmachine/connections/slack.py
@@ -32,6 +32,9 @@ class SlackWS(Connection):
32 self.user_map = {} # user info keyed by their slack id 32 self.user_map = {} # user info keyed by their slack id
33 self.user_nick_to_id = {} # slack user id mapped to the (nick)name 33 self.user_nick_to_id = {} # slack user id mapped to the (nick)name
34 34
35 #: The nickname of the bot
36 self.nick = ''
37 #: The slack id for the bot
35 self.my_id = '000' 38 self.my_id = '000'
36 39
37 self.ws = None 40 self.ws = None
@@ -64,7 +67,7 @@ class SlackWS(Connection):
64 return True 67 return True
65 68
66 def on_hello(self, msg): 69 def on_hello(self, msg):
67 self.log.info('Connected to Slack') 70 self.log.info('Connected to Slack as {}'.format(self.nick))
68 self.STATUS = CONNECTED 71 self.STATUS = CONNECTED
69 self.start_ping() 72 self.start_ping()
70 73