Skip to content

Instantly share code, notes, and snippets.

@ricardofiorani
Created July 19, 2016 12:57
Show Gist options
  • Save ricardofiorani/74150f2b735b3d10d18057ca2a3eb026 to your computer and use it in GitHub Desktop.
Save ricardofiorani/74150f2b735b3d10d18057ca2a3eb026 to your computer and use it in GitHub Desktop.
Checks if brazilian Pokemon Go server is online
#!/bin/sh
## Checa se o servidor brasileiro de Pokemon Go esta online
while true
do
if (curl -s 'http://www.mmoserverstatus.com/pokemon_go' | grep 'Brazil<span><i class="fa fa-check green')
then
spd-say 'pokemon no brazil'
else
echo 'Offline'
fi
sleep 30
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment