Ruby app that uses Prowl to send push notifications to your iOS device alerting you of Neptunes Pride attacks.
PROWL_KEY- Prowl app API key (paid for iOS app)REDIS_URL- Redis URL (free heroku redis dev addon)PLAYER_ID- Your Neptunes Pride player IDGAME_ID- Neptunes Pride game IDAUTH- Neptunes Pride auth cookie (aquired using Chrome's dev tools)
Ruby the app.rb file to query the NP API and send attack alerts:
ruby app.rbTo acknowledge an attack and stop notifications:
irb
> require './boot'
> NP::Attack.acknowledge("{{CODE}}")
>
> # Example
> # NP::Attack.acknowledge("201-19-236")Deploy to heroku with env vars and redis:
heroku create np-app
git push heroku masterSet up scheduled job addon and run ruby app.rb every 10 mins.