🢀︎ tools :: 9731960


commit 9731960d76c573745ec5b4bf233691d1e62d8863
Author: acidvegas <acid.vegas@acid.vegas>
Date:   Sat Aug 17 08:49:57 2019 -0400

    updated

diff --git a/deploy-unrealircd b/deploy-unrealircd
index 599bd52..ab75880 100755
--- a/deploy-unrealircd
+++ b/deploy-unrealircd
@@ -5,20 +5,23 @@ UNREAL=$HOME/unrealircd
 BACKUP=$UNREAL.backup
 SOURCE=$UNREAL.source
 
-get_latest() {
-	curl -s https://www.unrealircd.org/downloads/list.json | sed -e 's/[{}]/''/g' | awk -v RS=',"' -F: '/^version/ {print $2}' | sed 's/\(^"\|"$\)//g'
-}
+#LATEST=$(curl -s https://www.unrealircd.org/downloads/list.json | sed -e 's/[{}]/''/g' | awk -v RS=',"' -F: '/^version/ {print $2}' | sed 's/\(^"\|"$\)//g')
 
 update_source() {
 	wget -O $SOURCE.tar.gz https://www.unrealircd.org/downloads/unrealircd-latest.tar.gz
 	tar -xvf $SOURCE.tar.gz --one-top-level --strip-components=1
 	rm $SOURCE.tar.gz
+	sed -i 's/NICKNAMEHISTORYLENGTH="2000"/NICKNAMEHISTORYLENGTH="100"/g' $SOURCE/Config
+	sed -i 's/REMOTEINC=""/REMOTEINC="1"/g' $SOURCE/Config
+	sed -i 's/PREFIXAQ="1"/PREFIXAQ="0"/g' $SOURCE/Config
+	sed -i 's/SHOWLISTMODES="1"/SHOWLISTMODES="0"/g' $SOURCE/Config
 	sed -i 's;//#undef FAKELAG_CONFIGURABLE;#define FAKELAG_CONFIGURABLE;g' $SOURCE/include/config.h
 	sed -i 's_\t\t\tsendnotice(acptr, "*** You were forced to join %s", jbuf);_\t\t\t//sendnotice(acptr, "*** You were forced to join %s", jbuf);_g' $SOURCE/src/modules/m_sapart.c
 	rm -r $SOURCE/doc/conf/aliases $SOURCE/doc/conf/examples $SOURCE/doc/conf/help
 	rm -r $SOURCE/doc/conf/*.conf
 	cp $HOME/dev/git/supernets/unrealircd/doc/conf/*.conf $SOURCE/doc/conf/
 	cp $HOME/dev/git/supernets/unrealircd/src/ssl.cnf $SOURCE/src/ssl.cnf
+	echo "edit your Makefile.in"
 }
 
 deploy() {
diff --git a/monitor b/monitor
index b248485..fe4cbf1 100755
--- a/monitor
+++ b/monitor
@@ -3,6 +3,7 @@ while true; do
 	for i in $(dig irc.supernets.org A irc.supernets.org AAAA +short); do
 		ping -c 1 $i &> /dev/null
 		[ $? -ne 0 ] && echo "`date`: ping failed! ($i)" #&& notify-send "`date`: ping failed! ($i)"
+		sleep 1
 	done
 	sleep 3600
 done
\ No newline at end of file
diff --git a/startbots b/startbots
index 26248a4..57dee8a 100755
--- a/startbots
+++ b/startbots
@@ -1,11 +1,34 @@
 #!/bin/sh
-pkill -9 abduco && pkill -9 python
-cd $HOME/bots              && abduco -fnr FUCKYOU      python 5000.py         && sleep 1
-cd $HOME/bots/anythinggoes && abduco -fnr anythinggoes python anythinggoes.py && sleep 1
-cd $HOME/bots              && abduco -fnr cancer       python cancer.py       && sleep 1
-cd $HOME/bots/dickserv     && abduco -fnr dickserv     python dickserv.py     && sleep 1
-cd $HOME/bots/irccex/efnet && abduco -fnr irccex-efnet python irccex.py       && sleep 1
-cd $HOME/bots/irccex/super && abduco -fnr irccex-super python irccex.py       && sleep 1
-cd $HOME/bots              && abduco -fnr limitserv    python limitserv.py    && sleep 1
-cd $HOME/bots/scroll       && abduco -fnr scroll       python scroll.py       && sleep 1
-cd $HOME/bots              && abduco -fnr spiderweb    python spiderweb.py
\ No newline at end of file
+start() {
+	pkill -9 abduco && pkill -9 python
+	cd $HOME/bots              && abduco -fnr FUCKYOU      python 5000.py         && sleep 1
+	cd $HOME/bots/anythinggoes && abduco -fnr anythinggoes python anythinggoes.py && sleep 1
+	cd $HOME/bots              && abduco -fnr cancer       python cancer.py       && sleep 1
+	cd $HOME/bots/dickserv     && abduco -fnr dickserv     python dickserv.py     && sleep 1
+	cd $HOME/bots/irccex/efnet && abduco -fnr irccex-efnet python irccex.py       && sleep 1
+	cd $HOME/bots/irccex/super && abduco -fnr irccex-super python irccex.py       && sleep 1
+	cd $HOME/bots              && abduco -fnr limitserv    python limitserv.py    && sleep 1
+	cd $HOME/bots/scroll       && abduco -fnr scroll       python scroll.py       && sleep 1
+	cd $HOME/bots              && abduco -fnr spiderweb    python spiderweb.py
+}
+
+get() {
+	mkdir $HOME/bots
+	wget -O $HOME/bots/5000.py https://raw.githubusercontent.com/acidvegas/trollbots/master/5000.py
+	mkdir -P $HOME/bots/anythinggoes/data
+	wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/anythinggoes.py
+	wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/data/banana.txt
+	wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/data/crab.txt
+	wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/data/crate.txt
+	wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/data/worms.txt
+	wget -O $HOME/bots/cancer.py https://raw.githubusercontent.com/acidvegas/random/master/irc/cancer.py
+	git clone --depth 1 https://github.com/acidvegas/dickserv.git $HOME/bots/dickserv
+	mkdir $HOME/bots/irccex
+	git clone --depth 1 https://github.com/pumpcoin/irccex.git $HOME/bots/irccex/irccex-efnet
+	git clone --depth 1 https://github.com/pumpcoin/irccex.git $HOME/bots/irccex/irccex-super
+	wget -O $HOME/bots/limitserv.py https://raw.githubusercontent.com/acidvegas/limitserv/master/limitserv.py
+	git clone --depth 1 https://github.com/ircart/scroll.git $HOME/bots/scroll
+	rm -r $HOME/bots/scroll/scroll/data/art
+	git clone --depth 1 https://github.com/ircart/ircart.git $HOME/bots/scroll/scroll/data/art
+	wget -O $HOME/bots/spiderweb.py https://raw.githubusercontent.com/acidvegas/trollbots/master/spiderweb.py
+}
\ No newline at end of file