3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-12 21:22:39 +01:00

Merge pull request #255 from zuzak/upstream

Further automate the install script
This commit is contained in:
Luke Slater 2013-01-30 07:07:43 -08:00
commit d7ce42d04c

View File

@ -1,5 +1,5 @@
#!/bin/bash
cat LICENCE
git submodule init
git submodule update
@ -16,8 +16,20 @@ wget http://d3js.org/d3.v3.zip
unzip d3.v3.zip
rm d3.v3.zip
cd ..
cd ../..
cp config.json.sample config.json
if [ ! -f config.json ];
then
echo 'Creating configuration file...'
cp config.json.sample config.json
vim config.json
fi
read -p "Setup complete. Run depressionbot now? [y/N]"
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
echo 'Okay. To run the bot, use "node run.js"'
exit
fi
node run.js
echo 'Setup complete. Now edit config.json with your preferences and run the bot with "node run.js"'