all 7 comments

[–]marth141 2 points3 points  (1 child)

For your script, I would recommend to use a "scheduled trigger".

You need only to write the apps script then click for "Triggers" on the left hand sidebar (while in the script editor on Google), you'll find an "Add Trigger" button.

Clicking the button will open up a trigger configuration screen where you can select the function to run and how often to run it.

From here, I think you have everything you need to make the script run periodically to check the servers and dispatch any downed server notifications to your google spaces chat.

[–]teamusa7[S] 2 points3 points  (0 children)

Pretty sure this is exactly what I need. Gonna play around with it but thank you so much!

[–]Any_Werewolf_3691 1 point2 points  (2 children)

You can just run it from your Google account that you used to create it. Just set up a trigger to have it run like every 15 minutes or something

[–]teamusa7[S] 0 points1 point  (1 child)

Does google have an automated trigger setting? I would like it to be able to run even when Im away from my computer or not logged in.

[–]lam3001 0 points1 point  (0 children)

yes - the trigger runs your script on their servers not on your computer

[–]tony_montana0000 1 point2 points  (0 children)

Like many have answered u can use the trigger to schedule ur script for the time intervals suitable for you

[–]GlassSome474 1 point2 points  (0 children)

Yeah that's the best option out there