2015-01-21 19:22:48 +00:00
|
|
|
#!/bin/bash
|
2019-01-29 14:58:38 +00:00
|
|
|
# check if the bot is already running
|
|
|
|
if [[ ! `pidof -sx bot_launcher.py` || ! `ps -p $(pidof -sx bot_launcher.py) -o args | grep "\-n banterbot"` ]]; then
|
2016-03-10 16:54:42 +00:00
|
|
|
echo "Starting banterbot"
|
2019-01-29 14:58:38 +00:00
|
|
|
/home/krowbar/Code/irc/bot_launcher.py -n banterbot -s 127.0.0.1 -p 6667 -c \#tildetown \#bots
|
|
|
|
# nohup /home/krowbar/Code/irc/bot_launcher.py -n banterbot -s 127.0.0.1:6667 -c \#bot_test
|
2016-03-10 16:54:42 +00:00
|
|
|
else
|
|
|
|
echo "Banterbot has already been started"
|
|
|
|
fi
|