Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Slack Coin Alert

  • Edit settings.json to set notification treshold
{
  "BTC": [min, max],
  "ETH": [min, max]
}
  • Create an Incoming WebHooks entry on Slack

  • Add SLACK_COIN_URL to your environment with the webhook URL from the previous step

export SLACK_COIN_URL='https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/xxxxxxxxxxxxxxxxxxxxxxxx'
  • Add a cron script
# cron.sh
#!/usr/bin/env bash

# load rvm ruby
source /home/user/.rvm/environments/ruby-2.4.1 # if using RVM
export SLACK_COIN_URL='https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/xxxxxxxxxxxxxxxxxxxxxxxx'

cd /home/user/slack-coin-alert
ruby /home/user/slack-coin-alert/alert.rb
  • Add a cron entry (e.g. crontab -e)
# Runs the cron script every 10 minutes
*/10 * * * * /home/user/slack-coin-alert/cron.sh

About

Get cryptocurrency (BTC and ETH) price alerts in Slack

Resources

Releases

No releases published

Packages

No packages published

Languages