aboutsummaryrefslogtreecommitdiff
path: root/run.sh
blob: fc59f5a36569316e433ef274b75010a0d274d0ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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\" or pressing ^C"

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