
Anyway to try and make a script, i thought it would be fun to make a script that random chooses a nick on that channel and then kick it with a random reason.
The bot has ops, no errors found anymore and even the notice-line I put it comes up fine, so the script must be loaded.
Only nothing happens.
Can you guys bring the light for me here ?
Code: Select all
set kickmsg {
{Congratulations ! You were in my way !}
{Your time to do the dishes,hun}
{My eye fell on you, dear}
{BUNGABUNGABUNGA}
{dumdedum}
{ $nick , you asked me to kick you ?}
{You have been randomly chosen for a jolly kick -_- }
{eeekkkk}
}
bind pub - !kadeng kadeng
proc kadeng { nick chan } {
global kickmsg
set users [chanlist #shrekkie]
set kicknick [lindex $users [rand [llength $users]]]
set excuse [lindex $kickmsg [rand [llength $kickmsg]]]
putserv "KICK #shrekkie $kicknick $excuse "
}
putlog "Random Kick Script - by Shrekkie loaded ... "
putserv "NOTICE Shrekkie Plugin loaded"