This is snippet for bot ... meybe have a bugs ...meybe no xD
using !cool For activation snippet xD
on *:text:!cool*:#: {
if ( $2 ison #) && ( $me isop #) || ( $me ishop #)
set %coolnick $2 $+ `
/nick %coolnick
ban # $2 | /timer 1 2 kick # $2 Oh no you baned your self?
unset %coolnick
/nick Botnick | /identify Password if is botnick registred
Well, you should try and make this a bit more better by putting brackets.
Heres what I'd do to the script:
on *:LOAD:*:{
echo Please type /bn followed by your bot's nick. Thanks!
}
alias bn {
/set %botnick $1
echo Thanks, botnick's set to $1
}
on *:text:!cool *:#: {
if ($2 ison $chan) {
if ($me isop $chan) || ($me ishop $chan) {
var %coolnick $2 $+ `
/nick %coolnick
/mode $chan +b $address($2,2)
.timer 1 3 /kick $2 $chan Oh no you baned your self and kicked your self?!
return %coolnick
/nick %botnick
}
}
}
That would suit my bot :)
wtf is this about anyway??? makes no sense...
but i guess you could clean it up some..
on $@*:text:/^!cool\s(\S+)$/iS:#: {
if (!$timer(nc) && $nick(#,$nick,oh) && $regml(1) ison # && $v1 != $me) {
nick $+($v1,`)
ban -ku10 # $v1 2 Oh no you banned your self?
.timernc 1 5 nick $mnick
.ns identify passhere
}
}
Still this code just makes no sense...