SparrowBot/autolaunch.sh
2016-03-15 00:54:17 +01:00

18 lines
384 B
Bash

#!/bin/sh
read -p "git user ?" user
read -s -p "git password ?" pass
echo " "
read -s -p "bot password ?" botpass
mkdir build
while true
do
git pull https://'$user':'$pass'@epicsparrow.com/Anselme/sparrowbot.git
cd build
qmake-qt5 ../SparrowBot.pro
make
cd bin
./SparrowBot -nogui nick=SparrowBot pass=$botpass chan=epicsparrow server=irc.freenode.net port=6667
cd ../..
done