diff options
Diffstat (limited to 'warmachine/connections/slack.py')
| -rw-r--r-- | warmachine/connections/slack.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/warmachine/connections/slack.py b/warmachine/connections/slack.py index 2f1a249..79c80a2 100644 --- a/warmachine/connections/slack.py +++ b/warmachine/connections/slack.py | |||
| @@ -97,6 +97,11 @@ class SlackWS(Connection): | |||
| 97 | destination = self.channel_name_to_id[destination.replace('#','')] | 97 | destination = self.channel_name_to_id[destination.replace('#','')] |
| 98 | else: | 98 | else: |
| 99 | _user = self.user_nick_to_id[destination] | 99 | _user = self.user_nick_to_id[destination] |
| 100 | |||
| 101 | # slack doesn't allow bots to message other bots | ||
| 102 | if self.user_map[_user]['is_bot']: | ||
| 103 | return | ||
| 104 | |||
| 100 | destination = self.get_dm_id_by_user(_user) | 105 | destination = self.get_dm_id_by_user(_user) |
| 101 | 106 | ||
| 102 | message = { | 107 | message = { |