Skip to content

samlevy/pd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neptunes Pride Pager Duty

Ruby app that uses Prowl to send push notifications to your iOS device alerting you of Neptunes Pride attacks.

Required ENV Vars

  • 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 ID
  • GAME_ID - Neptunes Pride game ID
  • AUTH - Neptunes Pride auth cookie (aquired using Chrome's dev tools)

Usage

Ruby the app.rb file to query the NP API and send attack alerts:

ruby app.rb

To acknowledge an attack and stop notifications:

irb

> require './boot'
> NP::Attack.acknowledge("{{CODE}}")
>
> # Example
> # NP::Attack.acknowledge("201-19-236")

Deploy

Deploy to heroku with env vars and redis:

heroku create np-app
git push heroku master

Set up scheduled job addon and run ruby app.rb every 10 mins.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages