Converted tildebot to pinhook framework. Moved other things around. Util-ified stuff

This commit is contained in:
RussellChamp committed 2019-01-29 09:58:38 -05:00
1 parent bc102890b2
commit 5f1bf146c3
52 files changed
+141 -6679

No files matched your search

+4 -4
View File
@@ -1,9 +1,9 @@
#!/bin/bash
if [[ ! `pidof -sx banterbot.py` ]]; then
#nohup ./banterbot.py -s 127.0.0.1:6667 -n banterbot -c \#tildetown \#bots >> banterlog 2>> banterlog &
# 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
echo "Starting banterbot"
nohup ./banterbot.py -s 127.0.0.1:6667 -n banterbot -c \#tildetown \#bots >> banterlog 2>> banterlog &
/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
else
echo "Banterbot has already been started"
fi