Savoir si une chaîne twitch est en ligne - retour accueil
git clone git://bebou.netlib.re/twitch-online
Log | Files | Refs | README |
commit c1cbc09eb1d191f4c496a303c1811eaaac40edf2 parent bc293a56381d16ae580532e3c833bacc84ecb438 Auterice: arthur <arthur.pons@unistra.fr> Date: Sat, 5 Mar 2022 13:57:30 +0100 Cleanup Diffstat:
M | twitch_update | | | 21 | ++++++++++++++------- |
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/twitch_update b/twitch_update @@ -6,11 +6,18 @@ make_feed() { echo "$(date +'%s') https://twitch.tv/$1 $1" >> ~/.sfeed/feeds/twitch } -curl -sL sullygnome.com/channel/esl_sc2 | grep -q "Online now" && make_feed esl_sc2 -curl -sL sullygnome.com/channel/pousour | grep -q "Online now" && make_feed pousour -curl -sL sullygnome.com/channel/tfue | grep -q "Online now" && make_feed tfue -curl -sL sullygnome.com/channel/diegosaurs | grep -q "Online now" && make_feed diegosaurs -curl -sL sullygnome.com/channel/esl_csgo | grep -q "Online now" && make_feed esl_csgo -curl -sL sullygnome.com/channel/blastpremier | grep -q "Online now" && make_feed blastpremier -curl -sL sullygnome.com/channel/sweetdreams | grep -q "Online now" && make_feed sweetdreams +check_live() { + curl -sL sullygnome.com/channel/$1 | grep -q "Online now" && make_feed $1 +} + +check_live esl_sc2 +check_live pousour +check_live shivfps +check_live rogue +check_live daltoosh +check_live tfue +check_live diegosaurs +check_live esl_csgo +check_live blastpremier +check_live sweetdreams exit 0