Skip to content
This repository has been archived by the owner on Jul 8, 2018. It is now read-only.

Latest commit

 

History

History
40 lines (25 loc) · 1020 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 1020 Bytes

Slack Deployment Bot

This is a simple script that posts to the any channel of the Slack team the bot is associated with (this bot is only intended to be used with The Gazelle, so hasn't been made further customizeable)

Setup

First install the dependencies

npm install

Then copy the example config to create the actual config

cp config.example.js config.js

And then fill in the API token of your bot in that config file. If you do not have a bot created yet you can follow this guide.

Posting a message

To post a message you now simply run

node index.js "Some message to post to the Slack team"

to post to the default deployment channel, or

node index.js <channel_to_send_to> "Some message to post to the Slack team"

to post to a custom channel such as error-logging

NOTE: Remember that your bot must have been added to any channel you post to

License

MIT Licensed Copyright (c) 2018 Emil Goldsmith Olesen