From c840e3581e5c26b888ec48ac405617cdf09aba2e Mon Sep 17 00:00:00 2001 From: topkecleon Date: Tue, 19 Apr 2016 05:59:37 -0400 Subject: [PATCH] Main script will now download JSON.sh if the user did not clone recursively. --- bashbot.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bashbot.sh b/bashbot.sh index 3ed097f..6d9d708 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -11,6 +11,12 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) +if [ ! -d "JSON.sh" ]; then + echo "You did not clone recursively! Downloading JSON.sh..." + git clone http://github.com/dominictarr/JSON.sh/ + echo "JSON.sh has been downloaded. Proceeding." +fi + source commands.sh source URL='https://api.telegram.org/bot'$TOKEN