catops / mattermost-slashbot

Run bot commands as mattermost slash commands with in-place responses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mattermost-slashbot Build Status npm

🐱 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.

Installation

In hubot project repo, run:

npm install mattermost-slashbot --save

Then add mattermost-slashbot to your external-scripts.json:

["mattermost-slashbot"]

Sample Interaction

Setup webhook that posts to /hubot/command/

User types:

/bot ping

Everyone sees:

User [BOT]: PONG

Contributing

Please read our general contributing guidelines.

Open source licensing info

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy

About

Run bot commands as mattermost slash commands with in-place responses

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 62.4%Language:Shell 19.9%Language:CoffeeScript 17.8%