hubot-mattermost icon indicating copy to clipboard operation
hubot-mattermost copied to clipboard

Add support for slash commands

Open shimaore opened this issue 8 years ago • 1 comments

This adds support for slash commands by sending the name of the command to hubot (therefor the command name should match the hubot's --name). To use, add a Slash command in Mattermost and add the command's token to MATTERMOST_TOKEN just like a regular webhook.

shimaore avatar Jan 15 '17 12:01 shimaore

That looks great!

As I'm having issues with my laptop, would you mind posting a sample on how that is in action? Even an unit test would suffice too

Thanks again for contributing!!

On 15 Jan 2017, 12:17 +0000, Stéphane Alnet [email protected], wrote:

This adds support for slash commands by sending the name of the command to hubot (therefor the command name should match the hubot's --name). To use, add a Slash command in Mattermost and add the command's token to MATTERMOST_TOKEN just like a regular webhook.

You can view, comment on, or merge this pull request online at:

https://github.com/renanvicente/hubot-mattermost/pull/25

Commit Summary Add support for slash commands slash-command: remove initial slash slash-command: provide proper response

File Changes M src/mattermost.coffee (https://github.com/renanvicente/hubot-mattermost/pull/25/files#diff-0) (7)

Patch Links: https://github.com/renanvicente/hubot-mattermost/pull/25.patch https://github.com/renanvicente/hubot-mattermost/pull/25.diff

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/renanvicente/hubot-mattermost/pull/25), or mute the thread (https://github.com/notifications/unsubscribe-auth/ADL4BEsq8KImgh8mHjL06EgqIeBKw8Zcks5rSg5dgaJpZM4Lj5tc).

heitorlessa avatar Jan 18 '17 20:01 heitorlessa