Skip to content

A tiny chatops slack chat bot. Responds to messages in a slack channel by executing predefined custom shell scripts.

Notifications You must be signed in to change notification settings

bjornreppen/tiny-slack-chatops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tiny chatops slack chat bot. Responds to messages in a slack channel by executing predefined custom shell scripts.

Example

screenshot

Using a config.json containing:

{
  "actions": {
    "sleep": {
      "message": "going to sleep",
      "script": "./script/sleep"
    },
    "help": {
      "message": "I understand: deploy, ping, sleep, top"
    },
}

Installation

  • Download/clone the repo
  • Run npm install
  • Add a bot at https://my.slack.com/services/new/bot and export the environment variable
    • export SLACK_CHATOPS_TOKEN=the_token_from_above
  • Create a private channel (aka group) inside slack.
    • Invite the bot
  • Edit config.json
    • Set channel
    • Configure actions
  • Run npm start

About

A tiny chatops slack chat bot. Responds to messages in a slack channel by executing predefined custom shell scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published