mirror of https://tildegit.org/ben/sedbot
pass
parent
4dece0f65c
commit
73d0f55630
17
sedbot.bash
17
sedbot.bash
|
@ -3,14 +3,15 @@
|
||||||
#license: GNU GPL v3+
|
#license: GNU GPL v3+
|
||||||
|
|
||||||
|
|
||||||
SERVER=irc.example.net # the IRC server to connect to
|
SERVER=irc.tilde.team # the IRC server to connect to
|
||||||
PORT=6667 # port to connect to
|
PASS= # server pass
|
||||||
|
PORT=6697 # port to connect to
|
||||||
NICK=sedbot # bot's nickname
|
NICK=sedbot # bot's nickname
|
||||||
LOGIN=sedbot # bot's username
|
LOGIN=sedbot # bot's username
|
||||||
REALNAME=sedbot # bot's name
|
REALNAME=sedbot # bot's name
|
||||||
CHANNELS=('#example') # array of channels to autojoin at start
|
CHANNELS=('#meta') # array of channels to autojoin at start
|
||||||
IRC_LOG=~/sedbot.log # irc message log
|
IRC_LOG=sedbot.log # irc message log
|
||||||
ERROR_LOG=~/sedbot.err # log of errors, events and used regexps
|
ERROR_LOG=sedbot.err # log of errors, events and used regexps
|
||||||
|
|
||||||
MAX_LINE_LENGTH=400 # truncate lines to this many bytes
|
MAX_LINE_LENGTH=400 # truncate lines to this many bytes
|
||||||
SLEEP_JOIN=3 # sleep after identifying before autojoining channels
|
SLEEP_JOIN=3 # sleep after identifying before autojoining channels
|
||||||
|
@ -31,11 +32,15 @@ connect() {
|
||||||
if (($?)); then
|
if (($?)); then
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
sendmsg NICK "$NICK"
|
sendmsg PASS "$PASS"
|
||||||
if (($?)); then
|
if (($?)); then
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
sendmsg USER "$LOGIN 8 *" "$REALNAME"
|
sendmsg USER "$LOGIN 8 *" "$REALNAME"
|
||||||
|
if (($?)); then
|
||||||
|
return $?
|
||||||
|
fi
|
||||||
|
sendmsg NICK "$NICK"
|
||||||
if (($?)); then
|
if (($?)); then
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue