A Slack App that will crawl a specific Soundcloud User and post stats of how their tracks are doing into a channel.
MIT License
A Slack App that will crawl a specific Soundcloud User and post stats of how their tracks are doing into a channel.
config.json
in config/
and supply these values. You can also duplicate and create a config.test.json
if you wish to test into a different webhook.{
"SOUNDCLOUD_USER_ID": "",
"CLIENT_ID": "",
"APP_VERSION": "",
"SLACK_WEBHOOK_URL": ""
}
api-v2.soundcloud.com
). These calls will have the parameters client_id
and app_version
passed. See the image belownpm install
in this repository.npm run start
and you should send a Slack message to the channel you chose when setting up your Webhook URL above.sudo crontab -e
and will run Monday 8 AM every weekNODE_PATH=/home/pi/.npm/lib/node_modules
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0 8 * * 1 /usr/local/bin/npm start --prefix /home/pi/slack-soundcloud-pulse >/dev/null 2>&1
client_id
value gets refreshed every so often so you may need to verify you have the right client_id
. I have not pinpointed how often this refresh happens but it seems every few months it can refresh.NODE_PATH
and PATH
in your crontab in order for it to run. See here
grep CRON /var/log/syslog
and see if your job is running.