1 | commit 9731960d76c573745ec5b4bf233691d1e62d8863 |
2 | Author: acidvegas <acid.vegas@acid.vegas> |
3 | Date: Sat Aug 17 08:49:57 2019 -0400 |
4 | |
5 | updated |
6 | --- |
7 | deploy-unrealircd | 9 ++++++--- |
8 | monitor | 1 + |
9 | startbots | 43 +++++++++++++++++++++++++++++++++---------- |
10 | 3 files changed, 40 insertions(+), 13 deletions(-) |
11 | |
12 | diff --git a/deploy-unrealircd b/deploy-unrealircd |
13 | index 599bd52..ab75880 100755 |
14 | --- a/deploy-unrealircd |
15 | +++ b/deploy-unrealircd |
16 | @@ -5,20 +5,23 @@ UNREAL=$HOME/unrealircd |
17 | BACKUP=$UNREAL.backup |
18 | SOURCE=$UNREAL.source |
19 | |
20 | -get_latest() { |
21 | - curl -s https://www.unrealircd.org/downloads/list.json | sed -e 's/[{}]/''/g' | awk -v RS=',"' -F: '/^version/ {print $2}' | sed 's/\(^"\|"$\)//g' |
22 | -} |
23 | +#LATEST=$(curl -s https://www.unrealircd.org/downloads/list.json | sed -e 's/[{}]/''/g' | awk -v RS=',"' -F: '/^version/ {print $2}' | sed 's/\(^"\|"$\)//g') |
24 | |
25 | update_source() { |
26 | wget -O $SOURCE.tar.gz https://www.unrealircd.org/downloads/unrealircd-latest.tar.gz |
27 | tar -xvf $SOURCE.tar.gz --one-top-level --strip-components=1 |
28 | rm $SOURCE.tar.gz |
29 | + sed -i 's/NICKNAMEHISTORYLENGTH="2000"/NICKNAMEHISTORYLENGTH="100"/g' $SOURCE/Config |
30 | + sed -i 's/REMOTEINC=""/REMOTEINC="1"/g' $SOURCE/Config |
31 | + sed -i 's/PREFIXAQ="1"/PREFIXAQ="0"/g' $SOURCE/Config |
32 | + sed -i 's/SHOWLISTMODES="1"/SHOWLISTMODES="0"/g' $SOURCE/Config |
33 | sed -i 's;//#undef FAKELAG_CONFIGURABLE;#define FAKELAG_CONFIGURABLE;g' $SOURCE/include/config.h |
34 | 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 |
35 | rm -r $SOURCE/doc/conf/aliases $SOURCE/doc/conf/examples $SOURCE/doc/conf/help |
36 | rm -r $SOURCE/doc/conf/*.conf |
37 | cp $HOME/dev/git/supernets/unrealircd/doc/conf/*.conf $SOURCE/doc/conf/ |
38 | cp $HOME/dev/git/supernets/unrealircd/src/ssl.cnf $SOURCE/src/ssl.cnf |
39 | + echo "edit your Makefile.in" |
40 | } |
41 | |
42 | deploy() { |
43 | diff --git a/monitor b/monitor |
44 | index b248485..fe4cbf1 100755 |
45 | --- a/monitor |
46 | +++ b/monitor |
47 | @@ -3,6 +3,7 @@ while true; do |
48 | for i in $(dig irc.supernets.org A irc.supernets.org AAAA +short); do |
49 | ping -c 1 $i &> /dev/null |
50 | [ $? -ne 0 ] && echo "`date`: ping failed! ($i)" #&& notify-send "`date`: ping failed! ($i)" |
51 | + sleep 1 |
52 | done |
53 | sleep 3600 |
54 | done |
55 | diff --git a/startbots b/startbots |
56 | index 26248a4..57dee8a 100755 |
57 | --- a/startbots |
58 | +++ b/startbots |
59 | @@ -1,11 +1,34 @@ |
60 | #!/bin/sh |
61 | -pkill -9 abduco && pkill -9 python |
62 | -cd $HOME/bots && abduco -fnr FUCKYOU python 5000.py && sleep 1 |
63 | -cd $HOME/bots/anythinggoes && abduco -fnr anythinggoes python anythinggoes.py && sleep 1 |
64 | -cd $HOME/bots && abduco -fnr cancer python cancer.py && sleep 1 |
65 | -cd $HOME/bots/dickserv && abduco -fnr dickserv python dickserv.py && sleep 1 |
66 | -cd $HOME/bots/irccex/efnet && abduco -fnr irccex-efnet python irccex.py && sleep 1 |
67 | -cd $HOME/bots/irccex/super && abduco -fnr irccex-super python irccex.py && sleep 1 |
68 | -cd $HOME/bots && abduco -fnr limitserv python limitserv.py && sleep 1 |
69 | -cd $HOME/bots/scroll && abduco -fnr scroll python scroll.py && sleep 1 |
70 | -cd $HOME/bots && abduco -fnr spiderweb python spiderweb.py |
71 | +start() { |
72 | + pkill -9 abduco && pkill -9 python |
73 | + cd $HOME/bots && abduco -fnr FUCKYOU python 5000.py && sleep 1 |
74 | + cd $HOME/bots/anythinggoes && abduco -fnr anythinggoes python anythinggoes.py && sleep 1 |
75 | + cd $HOME/bots && abduco -fnr cancer python cancer.py && sleep 1 |
76 | + cd $HOME/bots/dickserv && abduco -fnr dickserv python dickserv.py && sleep 1 |
77 | + cd $HOME/bots/irccex/efnet && abduco -fnr irccex-efnet python irccex.py && sleep 1 |
78 | + cd $HOME/bots/irccex/super && abduco -fnr irccex-super python irccex.py && sleep 1 |
79 | + cd $HOME/bots && abduco -fnr limitserv python limitserv.py && sleep 1 |
80 | + cd $HOME/bots/scroll && abduco -fnr scroll python scroll.py && sleep 1 |
81 | + cd $HOME/bots && abduco -fnr spiderweb python spiderweb.py |
82 | +} |
83 | + |
84 | +get() { |
85 | + mkdir $HOME/bots |
86 | + wget -O $HOME/bots/5000.py https://raw.githubusercontent.com/acidvegas/trollbots/master/5000.py |
87 | + mkdir -P $HOME/bots/anythinggoes/data |
88 | + wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/anythinggoes.py |
89 | + wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/data/banana.txt |
90 | + wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/data/crab.txt |
91 | + wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/data/crate.txt |
92 | + wget -O $HOME/bots/anythinggoes/anythinggoes.py https://github.com/acidvegas/random/blob/master/irc/anythinggoes/data/worms.txt |
93 | + wget -O $HOME/bots/cancer.py https://raw.githubusercontent.com/acidvegas/random/master/irc/cancer.py |
94 | + git clone --depth 1 https://github.com/acidvegas/dickserv.git $HOME/bots/dickserv |
95 | + mkdir $HOME/bots/irccex |
96 | + git clone --depth 1 https://github.com/pumpcoin/irccex.git $HOME/bots/irccex/irccex-efnet |
97 | + git clone --depth 1 https://github.com/pumpcoin/irccex.git $HOME/bots/irccex/irccex-super |
98 | + wget -O $HOME/bots/limitserv.py https://raw.githubusercontent.com/acidvegas/limitserv/master/limitserv.py |
99 | + git clone --depth 1 https://github.com/ircart/scroll.git $HOME/bots/scroll |
100 | + rm -r $HOME/bots/scroll/scroll/data/art |
101 | + git clone --depth 1 https://github.com/ircart/ircart.git $HOME/bots/scroll/scroll/data/art |
102 | + wget -O $HOME/bots/spiderweb.py https://raw.githubusercontent.com/acidvegas/trollbots/master/spiderweb.py |
103 | +} |