From 18e82e75ef25fc5dda514aaa1adf26997c51788e Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 15:29:52 -0700 Subject: [PATCH] Update launch.sh --- launch.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/launch.sh b/launch.sh index 5536763..ee29bb4 100755 --- a/launch.sh +++ b/launch.sh @@ -3,14 +3,18 @@ # launch.sh echo "Launches the bot in a virtual environment" -# activate the virtual environment - -#look for venv folder and activate it if found +# activate the virtual environment if it exists if [ -d "venv" ]; then source venv/bin/activate fi # launch the application +cd "$(dirname "$0")" -python mesh_bot.py -#python pong_bot.py \ No newline at end of file +if [ "$1" == "pong" ]; then + python pong_bot.py +elif [ "$1" == "mesh" ]; then + python mesh_bot.py +else + echo "Please provide a bot to launch (pong/mesh)" +fi