LPgenerator / mattermost_bot

MatterBot - A chat bot for MatterMost (http://www.mattermost.org).
MIT License
211 stars 60 forks source link

Team support #45

Open pidzvnese opened 7 years ago

pidzvnese commented 7 years ago

Hello @gotlium, it seems mattermost_bot doesn't like when people speak to him from the different team? Does mattermost_bot support this?

Here is the traceback when sending msg to the chatbot from a channel of another team. The chatbot account in this team.

[08/30/2017 14:53:52] Starting new HTTP connection (1): vltv.stream Unhandled exception in thread started by <bound method WorkerPool.do_work of <mattermost_bot.utils.WorkerPool object at 0x7fede9dab668>> Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/mattermost_bot-1.0.20-py3.5.egg/mattermost_bot/utils.py", line 31, in do_work self.func(msg) File "/usr/local/lib/python3.5/dist-packages/mattermost_bot-1.0.20-py3.5.egg/mattermost_bot/dispatcher.py", line 64, in dispatch_msg if self.is_personal(msg): File "/usr/local/lib/python3.5/dist-packages/mattermost_bot-1.0.20-py3.5.egg/mattermost_bot/dispatcher.py", line 54, in is_personal channel_type = channel['channel']['type'] KeyError: 'channel'