mattermost-slashbot

A Hubot script that parses slash commands from Mattermost, forwards them to the bot, then formats the bot response to be slash command friendly.

Usage no npm install needed!

<script type="module">
  import mattermostSlashbot from 'https://cdn.skypack.dev/mattermost-slashbot';
</script>

README

mattermost-slashbot Build Status npm

:cat: 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