Added ability to troll people who kick the bot.
This commit is contained in:
parent
f559edad96
commit
e5670ccad2
2
bot.cfg
2
bot.cfg
@ -21,3 +21,5 @@ server="irc.netwirc.tk"
|
|||||||
user="$nick ${server%.} $server :$nick"
|
user="$nick ${server%.} $server :$nick"
|
||||||
# auto rejoin if kicked from channel?
|
# auto rejoin if kicked from channel?
|
||||||
autoRejoinChannel=true
|
autoRejoinChannel=true
|
||||||
|
# Say something nasty to whomever kicked the bot?
|
||||||
|
curseKicker=true
|
||||||
|
7
bot.sh
7
bot.sh
@ -45,6 +45,13 @@ do
|
|||||||
if [ "$autoRejoinChannel" = "true" ]; then
|
if [ "$autoRejoinChannel" = "true" ]; then
|
||||||
echo "JOIN #$c" | tee -a "$input"
|
echo "JOIN #$c" | tee -a "$input"
|
||||||
fi
|
fi
|
||||||
|
if [ "$curseKicker" = "true" ]; then
|
||||||
|
kickerName="${result%!*}"
|
||||||
|
kickerName="${kickerName:1}"
|
||||||
|
kickerChannel="${result##*#}"
|
||||||
|
kickerChannel="#${kickerChannel%% *}"
|
||||||
|
msg "$kickerChannel" "$kickerName: $(shuf -e -n1 "fuck you" "go fuck yourself")!"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
# run when someone joins
|
# run when someone joins
|
||||||
*"JOIN :#"*)
|
*"JOIN :#"*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user