slack-crypto
slack alerts for cryptocurrencies on coinmarketcap.com
installation
install using node package manager
https://www.npmjs.com/package/slack-crypto
$ npm install slack-crypto
$ cd bin && chmod u+x main
or clone repository
$ git clone https://github.com/waymobetta/slack-crypto.git
$ cd bin && chmod u+x main
requirements
-
create new bot user here: https://{team}.slack.com/apps/manage/custom-integrations
-
obtain api token (this will be needed during initial run then will not be needed again)
-
obtain channel ID (can be found by right clicking a channel in slack app ("open link") and locating the character string found within the url (e.g. D9Q5XPAW0); this will be needed during initial run then will not be needed again
- both the token and channel ID values within the config.json can be hardcoded and manually edited after running the program; configuration interface will reinitiate if values are empty.
usage
Example: single usage (Note: any cryptocurrency listed on coinmarketcap.com can be passed in as argument)
./main ethereum
notes
TODO:
- Add local env storage for slack token
- Add additional logic for bot
resources
Slack API: https://api.slack.com/
CoinMarketCap API: http://coinmarketcap.com/api/
license
MIT