Who wants attack notifications (Slack?)


#1

Hey all,

I’m addicted to this game and so of course I had to mess with the API.

I’ve built a simple CLI that I’m using to alert me when any attack is launched against my star (optionally, all players stars).

When any attack is launched I get a Slack alert that looks like this:

21:25:14 01/05/16

Slow Zaniah (BBB III) under attack by: 
  Jal with 10000 ship(s) aboard the carrier Rally Point Alpha VII
  Jal with 105261 ship(s) aboard the carrier Pure Juxta XIX
  Jal with 30646 ship(s) aboard the carrier Hassaleh III
  TOTALING 145907
  http://triton.ironhelmet.com/game/5357030163349504#star-zoom=328

Old Aldhibah (Davis Sharky) under attack by: 
  BBB III with 64165 ship(s) aboard the carrier Sigma Mud XXXIV
  MXC with 4328 ship(s) aboard the carrier Slow Thabit V
  TOTALING 68493
  http://triton.ironhelmet.com/game/5357030163349504#star-zoom=1

(The #star-zoom=328 at the end of the url allows a bookmarklet I wrote to zoom in to the selected star)

It’s clearly a work in progress but I’d like to gauge everyone interest in getting alerts like this and also in having a Triton CLI.

I’d love to contribute directly to the source code if Jay is ok with that, but at the very least I thought this would be something useful to have.


#2

This is awesome!

We could make that star-zoom thing official one day!


#3

That would be really neat!

Amazing job with this game @JayKyburz.

I’m going to release this as a slack bot unless someone has a better idea for the messaging.


#4

I don’t understand this, but is this something I could use?
Also, I know an app with push notifications has been mentioned in the past, but has it officially been rejected as an idea?


#5

Slack is a messaging app, so I’m using it to send me alerts when stars are attacked. Once I release a slackbot, everyone will be able to use it.

I can also send the notifications via email, sms or any other way. Slack just happens to be something I’m already using. How would you prefer to receive the alerts?


#6

That’s pretty incredible. I’m guessing it could notify you of all diplomacy/event notifications? The only reason I want a NPII app is for push notifications. As it stands, NPII is otherwise pretty great on mobile.


#7

Exactly right.

It could also be used to give commands although I’m not sure where that would actually be useful. Maybe for the chat?

As for app notifications, it would be trivial to make an android app purely for notifications. iPhone is a different story.


#8

Chat is the main one. I would also like to know when someone sends me a tech so if we’re trading, I will know to send them a tech in return. I’d like to know if someone quits or goes AFK in case they’re a neighbour I could move in on. I could think of an excuse for why I’d want to know about all notifications.

I don’t mean to hijack the thread with demands, though. I would happily use anything you make; I’m just throwing out ideas. :slight_smile:


#9

These are great ideas, I’d ideally like notification of all these things (and of course the ability to filter for specific alerts).

But yeah, it’s really nice to get instant notification when I or my neighbors are under attack. Otherwise I check every 5 seconds in-game and I’d really like to keep my job :smile:


#10

@habeyer, make sure not to poll the server too often please. No need to poll more than once every hour when ships move. (I’m not saying you are right now, but just incase anybody suggests polling every 5 mins to check for chats and things)


#11

Sure thing.

You don’t happen to have any handy websockets, do you.


#12

This is awesome. Looking forward to when you release it. I don’t currently use Slack, but I’ve been encouraged to for a umber of different things. NP2 advancements are a better reason than any to add to my list of messaging apps.

Bring it on!


#13

Sorry, we are not that advanced at IHG. Everything is just standard HTTP requests with slow polling. :wink:


#14

Don’t fix what ain’t broke :smile:


#15

Love it. very cool.


#16

I take it this would only be applicable to non-Turn-Based games. On another note, I think it would be great if you got chat thread update emails in addition to just the standard new chat thread email. I know that has nothing to do with this Slack Plugin but is this something that could be done easily Jay?


#17

Its a great idea !
But it would take out all the horror/fun of waking up in the morning with a dagger in your back.


#18

I realize this was a while ago. Where can I find the current API Endpoints or were they reverse engineered by someone?

Edit: I found some old projects. Doesn’t look like the API has changed. At least I get a 200 response from my login attempts. :slight_smile: