Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team support ? #39

Open
Madko opened this issue Apr 28, 2017 · 3 comments
Open

Team support ? #39

Madko opened this issue Apr 28, 2017 · 3 comments

Comments

@Madko
Copy link

Madko commented Apr 28, 2017

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

@attzonko
Copy link
Contributor

attzonko commented Aug 9, 2017

Hello, did you ever find a solution for this issue? I ran into the same problem. The only workaround I can come up with is to create a separate bot user for each team, and just run two separate instances of mattermost_bot. That seems ugly.

@attzonko
Copy link
Contributor

attzonko commented Aug 9, 2017

The issue is the server returns error 500 with the message: There is no channel with channel_id=ojdoaz586381udmyxoaadhcs1w on team with team_id=n7or4d5km3r7mqez11hqcr7wiw

My guess is the bot code would need to be refactored to comprehend dealing with multiple teams.

@pidzvnese
Copy link

pidzvnese commented Aug 14, 2017

@gotlium Hello, did you ever find a solution for this issue? I ran into the same problem. The only workaround I can come up with is to create a separate bot user for each team, and just run two separate instances of mattermost_bot. That seems ugly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants