From e462b945f4c074a7fd6c6d7e2b017f9b6e47e54d Mon Sep 17 00:00:00 2001 From: Brian Peiris <brianpeiris@gmail.com> Date: Thu, 10 May 2018 15:20:47 -0700 Subject: [PATCH] allow running bot script with room arg --- scripts/bot/run-bot.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/bot/run-bot.sh b/scripts/bot/run-bot.sh index 41c2c7571..7bd9b986a 100755 --- a/scripts/bot/run-bot.sh +++ b/scripts/bot/run-bot.sh @@ -16,6 +16,10 @@ yarn echo 'Running Hubs' yarn serve --ssl --port 8080 ../../public & echo 'Running bots' -node run-bot.js +if [ "$1" != "" ]; then + node run-bot.js --room $1 +else + node run-bot.js +fi trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT -- GitLab