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)
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.
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
MIT Licensed Copyright (c) 2018 Emil Goldsmith Olesen