Added ability to troll people who kick the bot.

This commit is contained in:
Storm Dragon 2017-04-28 19:58:05 -04:00
parent f559edad96
commit e5670ccad2
2 changed files with 9 additions and 0 deletions

View File

@ -21,3 +21,5 @@ server="irc.netwirc.tk"
user="$nick ${server%.} $server :$nick"
# auto rejoin if kicked from channel?
autoRejoinChannel=true
# Say something nasty to whomever kicked the bot?
curseKicker=true

7
bot.sh
View File

@ -45,6 +45,13 @@ do
if [ "$autoRejoinChannel" = "true" ]; then
echo "JOIN #$c" | tee -a "$input"
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
*"JOIN :#"*)