Just a birthday slap I whipped up real quick for a member's birthday today..
This snippet adds a nicklist menu item which allows you to announce and kick a user for each year they have been on this planet.
Warning, this might or probably flood you or them out if you are friends with old folks depending on server settings. Do not use this for malicious purposes.. that would just be trollish.
Happy Birthday MakiMaki :D
menu nicklist {
Birthday Slap: { birthday $$1 $$?="How old is $1 ?" }
}
alias birthday {
set -eu300 %bslap 1 $$2 $1 $active
msg $active Hey everyone, $1 is $2 years old today. Time to celebrate!
.timer 1 5 kick $active $1 :(B) Happy Birthday (B) ( 1 going on $2 )
}
on *:JOIN:#: {
if (%bslap) {
tokenize 32 %bslap
if (# == $4 && $nick == $3) {
if ($1 < $2) {
var %i $calc($1 + 1)
set %bslap $puttok($1-,%i,1,32)
KICK # $3 :(B) Happy Birthday (B) ( %i going on $2 )
}
else {
unset %bslap
KICK # $3 :(*)(B)(*) Happy Birthday (*)(B)(*) ( And one to go on )
} } } }