Skip to content

Team support ? #39

@Madko

Description

@Madko

Hi,
it seems mattermost_bot doesn't like when poeple speak to him from different team? Does mattermost_bot support this ?

Here is the traceback when sending msg to the bot from another team. The bot account is part of this other team.

Unhandled exception in thread started by <bound method WorkerPool.do_work of <mattermost_bot.utils.WorkerPool object at 0x7f82f4a35790>>
Traceback (most recent call last):
  File "/home/hubot/mattermost-bot/lib/python3.3/site-packages/mattermost_bot/utils.py", line 31, in do_work
    self.func(msg)
  File "/home/hubot/mattermost-bot/lib/python3.3/site-packages/mattermost_bot/dispatcher.py", line 64, in dispatch_msg
    if self.is_personal(msg):
  File "/home/hubot/mattermost-bot/lib/python3.3/site-packages/mattermost_bot/dispatcher.py", line 54, in is_personal
    channel_type = channel['channel']['type']
KeyError: 'channel'

Thanks for any help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions