diff options
Diffstat (limited to 'warmachine/connections')
| -rw-r--r-- | warmachine/connections/slack.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/warmachine/connections/slack.py b/warmachine/connections/slack.py index 2cb230c..0cc69d4 100644 --- a/warmachine/connections/slack.py +++ b/warmachine/connections/slack.py | |||
| @@ -153,6 +153,9 @@ class SlackWS(Connection): | |||
| 153 | for c in self._info.get('channels', []): | 153 | for c in self._info.get('channels', []): |
| 154 | self.channel_map[c['id']] = c | 154 | self.channel_map[c['id']] = c |
| 155 | 155 | ||
| 156 | for g in self._info.get('groups', []): | ||
| 157 | self.channel_map[g['id']] = g | ||
| 158 | |||
| 156 | async def process_message(self, msg): | 159 | async def process_message(self, msg): |
| 157 | # Built-in !whois action | 160 | # Built-in !whois action |
| 158 | if 'text' not in msg: | 161 | if 'text' not in msg: |
| @@ -357,7 +360,6 @@ class SlackWS(Connection): | |||
| 357 | # } | 360 | # } |
| 358 | # } | 361 | # } |
| 359 | 362 | ||
| 360 | |||
| 361 | # Invited to a public channel | 363 | # Invited to a public channel |
| 362 | # 2016-07-29 16:23:24,817 [DEBUG] SlackWS: on_channel_joined does not exist for message: {'type': 'channel_joined', 'chan | 364 | # 2016-07-29 16:23:24,817 [DEBUG] SlackWS: on_channel_joined does not exist for message: {'type': 'channel_joined', 'chan |
| 363 | # nel': {'members': ['U0286NL58', 'U1U05AF5J'], 'purpose': {'last_set': 0, 'creator': '', 'value': ''}, 'topic': {'last_s | 365 | # nel': {'members': ['U0286NL58', 'U1U05AF5J'], 'purpose': {'last_set': 0, 'creator': '', 'value': ''}, 'topic': {'last_s |