textBot

By RaiNBoW_Six on Jan 04, 2009

ok i no very good in scripting but i know now only text =]
code this Bot text

on @*:text:*:#:{ if ($nick isop $chan) {
if ($1 == voice) { /mode # +v $2- }
if ($1 == devoice) { /mode # -v $2- }
if ($1 == hop) { /mode # +h $2- }
if ($1 == dehop) { /mode # -h $2- }
if ($1 == op) { /mode # +o $2- }
if ($1 == deop) { /mode # -o $2- }
if ($1 == kick) { /kick # $2- }
if ($1 == ban) { /mode # +b $2- }
if ($1 == join) { /join # $2- }
if ($1 == part) { /part # $2- }
}

Comments

Sign in to comment.
PuNkTuReD   -  Jan 04, 2009

im not saying its ripped

 Respond  
Aucun50   -  Jan 04, 2009

Ripped? i was under the impression he did this one by himself.

 Respond  
PuNkTuReD   -  Jan 04, 2009

this is the usual we see around here,
/me sits and waits for someone to come and tell him he needs a URL

 Respond  
Aucun50   -  Jan 04, 2009

This don't work but good try, maybe go with:

on :TEXT::#: {
if ($nick isop $chan) {
if (voice == $strip($1)) { /mode # +v $2- }
if (devoice == $strip($1)) { /mode # -v $2- }
if (hop == $strip($1)) { /mode # +h $2- }
if (dehop == $strip($1)) { /mode # -h $2- }
if (op == $strip($1)) { /mode # +o $2- }
if (deop == $strip($1)) { /mode # -o $2- }
if (kick == $strip($1)) { /kick # $2- }
if (ban == $strip($1)) { /mode # +b $2- }
if (join == $strip($1)) { /join # $2- }
if (part == $strip($1)) { /part # $2- }
}
else { msg $chan Your not Oped }
}

Your "if" statement need to on the second line, add $strip so you can type it in colors to, else { msg $chan Your not Oped } so if there not oped it with msg that.

BTW "ok i no very good in scripting but i know now only text =]
code this Bot text" Did you mean? "Ok I'm not very good at scripting but i do know text =], coded this bot text"?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.