{"action":"created","issue":{"url":"https://api.github.com/repos/M-Mueller/mattermost-poll/issues/10","repository_url":"https://api.github.com/repos/M-Mueller/mattermost-poll","labels_url":"https://api.github.com/repos/M-Mueller/mattermost-poll/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/M-Mueller/mattermost-poll/issues/10/comments","events_url":"https://api.github.com/repos/M-Mueller/mattermost-poll/issues/10/events","html_url":"https://github.com/M-Mueller/mattermost-poll/issues/10","id":303408656,"number":10,"title":"Allow multiple mattermost tokens","user":{"login":"amaddio","id":1710491,"avatar_url":"https://avatars2.githubusercontent.com/u/1710491?v=4","gravatar_id":"","url":"https://api.github.com/users/amaddio","html_url":"https://github.com/amaddio","followers_url":"https://api.github.com/users/amaddio/followers","following_url":"https://api.github.com/users/amaddio/following{/other_user}","gists_url":"https://api.github.com/users/amaddio/gists{/gist_id}","starred_url":"https://api.github.com/users/amaddio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaddio/subscriptions","organizations_url":"https://api.github.com/users/amaddio/orgs","repos_url":"https://api.github.com/users/amaddio/repos","events_url":"https://api.github.com/users/amaddio/events{/privacy}","received_events_url":"https://api.github.com/users/amaddio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-08T09:19:43Z","updated_at":"2018-03-11T13:09:34Z","closed_at":null,"author_association":"NONE","body":"If you want this MM integration to be added to more than one MM team you need the ability to specify more than just one token in the config file. As for now you have to add a slash command manually to each MM team which generates an individual token. You would have to run the same mattermost-poll python web application several times. One for each MM team.\r\n\r\nI think it would make sense most to amend the code so that you can specify several MM tokens _MATTERMOST_TOKEN_ argument in _settings.py_. Has anyone already implemented such thing and cares for a pull request? Otherwise I would change the code and publish it here in case you are interested for merge?"},"comment":{"url":"https://api.github.com/repos/M-Mueller/mattermost-poll/issues/comments/372114359","html_url":"https://github.com/M-Mueller/mattermost-poll/issues/10#issuecomment-372114359","issue_url":"https://api.github.com/repos/M-Mueller/mattermost-poll/issues/10","id":372114359,"user":{"login":"M-Mueller","id":584616,"avatar_url":"https://avatars2.githubusercontent.com/u/584616?v=4","gravatar_id":"","url":"https://api.github.com/users/M-Mueller","html_url":"https://github.com/M-Mueller","followers_url":"https://api.github.com/users/M-Mueller/followers","following_url":"https://api.github.com/users/M-Mueller/following{/other_user}","gists_url":"https://api.github.com/users/M-Mueller/gists{/gist_id}","starred_url":"https://api.github.com/users/M-Mueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/M-Mueller/subscriptions","organizations_url":"https://api.github.com/users/M-Mueller/orgs","repos_url":"https://api.github.com/users/M-Mueller/repos","events_url":"https://api.github.com/users/M-Mueller/events{/privacy}","received_events_url":"https://api.github.com/users/M-Mueller/received_events","type":"User","site_admin":false},"created_at":"2018-03-11T13:09:34Z","updated_at":"2018-03-11T13:09:34Z","author_association":"OWNER","body":"I added a branch for this (team_tokens). Can you if this works for you? Thanks."}}
{"actor":{"display_login":"M-Mueller"}}