🐱 A Hubot script that parses slash commands from Mattermost, forwards them to the bot, then formats the bot response to be slash command friendly.
See src/mattermost-slashbot.js
for full documentation.
In hubot project repo, run:
npm install mattermost-slashbot --save
Then add mattermost-slashbot to your external-scripts.json
:
["mattermost-slashbot"]
Setup webhook that posts to /hubot/command/
User types:
/bot ping
Everyone sees:
User [BOT]: PONG
Please read our general contributing guidelines.