twitch-online

Savoir si une chaîne twitch est en ligne - retour accueil

git clone git://bebou.netlib.re/twitch-online
Log | Files | Refs | README |

commit b507173ef18fdeb5d0382ea7779cb82b7c97ed0b
parent b7f20a4c26111fa36cd5020a664540c098bfb105
Auterice: arthur <arthur.pons@unistra.fr>
Date:   Thu,  3 Mar 2022 15:32:41 +0100

Modification du script
Créer le bon feed dans le dossier sfeed

Diffstat:
Atwitch_update | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/twitch_update b/twitch_update @@ -0,0 +1,15 @@ +#! /bin/sh + +rm ~/.sfeed/feeds/twitch + +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 +exit 0