aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2022-03-11 17:01:39 -0700
committerBryson Steck <steck.bryson@gmail.com>2022-03-11 17:01:39 -0700
commit547e0a79df903f4f5cb8ceb0e5203901bd43ea19 (patch)
tree1990d13be9a2e90f896646eca4210fc4b9c14ad8 /install.sh
parent9eb5b3102216ea60169acff71c15e13db0264e44 (diff)
downloadlset-547e0a79df903f4f5cb8ceb0e5203901bd43ea19.tar
lset-547e0a79df903f4f5cb8ceb0e5203901bd43ea19.tar.gz
lset-547e0a79df903f4f5cb8ceb0e5203901bd43ea19.tar.bz2
implemented shell scripts, testing
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index e69de29..89d8071 100755
--- a/install.sh
+++ b/install.sh
@@ -0,0 +1,18 @@
+# check if correct programs are installed
+type git npm node python3 pip3
+
+if [[ $! -ne 0 ]]; then
+ echo "install: one or more of the above programs are not installed. the programs in question have lines that end in \"not found\". please make sure that these programs are installed through your package manager"
+ exit 0
+else
+ echo "install: required programs are installed, continuing"
+fi
+
+echo "install: installing requests python package for the source script"
+pip3 install --user requests
+
+echo "install: installing tmi node module for the twitch bot"
+cd twitch-bot
+npm install tmi.js
+
+echo