From 547e0a79df903f4f5cb8ceb0e5203901bd43ea19 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Fri, 11 Mar 2022 17:01:39 -0700 Subject: implemented shell scripts, testing --- run.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'run.sh') diff --git a/run.sh b/run.sh index e69de29..052da27 100755 --- a/run.sh +++ b/run.sh @@ -0,0 +1,17 @@ +cd twitch-bot +node bot.js & +BOT_PID=$! +cd ../follow-src +python3 source.py & +SCRIPT_PID=$! + +echo "The Twitch bot and Source script is now running. You can stop this script by typing \"stop\"" + +while read input; do + case $input in + stop) kill $BOT_PID; kill $SCRIPT_PID; break;; + esac + echo "You can stop this script by typing \"stop\"" +done + + -- cgit v1.2.3