Bot COntrol Snippet

By TheDreamLord on Jan 07, 2011

A simple to use bot control script, it can be used in PM or a channel and I'll be updating when i can :)
From: Adam, Megastorm and Phaethon

P.S Change YOURNICK to the nick you want to use to control your bot :)

on *:TEXT:*:*: {
  if ($nick == YOURNICK) {
    if ( $1 == !msg ) { /msg # $2- }
    if ( $1 == repeatOn) { /set %repeat on }
    if ( $1 == repeatOff) { /unset %repeat }
    if ( $1 == !me) { /describe # $2- }
    if ( $1 == !amsg) { /amsg $2- }
    if ( $1 == !ame) { /ame $2- }
    if ( $1 == !notice) { /notice # $2- }
    if ( $1 == !join) { /join $2 }
    if ( $1 == !part) { /part $2 }
    if ( $1 == !ns) { /ns $2- }
    if ( $1 == !nick) { /nick $2- }
    if ( $1 == !hop) { /hop # $2- }
    if ( $1 == !hs) { /hs $2- }
  }
}

Comments

Sign in to comment.
Phil_FW   -  Jan 09, 2011

sure thing :D let me know if you need any help

 Respond  
TheDreamLord   -  Jan 09, 2011

Thank you very much phil24 :D

 Respond  
Phil_FW   -  Jan 08, 2011

what you should do, instead of the if ($nick == YOURNICK).... is add your hostname to the users menu under owner: then just do

on owner:TEXT:*:*: {
    if ( $1 == !msg ) { /msg # $2- }
    if ( $1 == repeatOn) { /set %repeat on }
    if ( $1 == repeatOff) { /unset %repeat }
    if ( $1 == !me) { /describe # $2- }
    if ( $1 == !amsg) { /amsg $2- }
    if ( $1 == !ame) { /ame $2- }
    if ( $1 == !notice) { /notice # $2- }
    if ( $1 == !join) { /join $2 }
    if ( $1 == !part) { /part $2 }
    if ( $1 == !ns) { /ns $2- }
    if ( $1 == !nick) { /nick $2- }
    if ( $1 == !hop) { /hop # $2- }
    if ( $1 == !hs) { /hs $2- }
  }
 Respond  
xplo   -  Jan 08, 2011

lame, this should not be used, tond of irc network does not have nickserv. and !@hostnames.smtng are ALWAYS unique. use $address($nick,2) in ALL your nick/user/host matching. you can even be more specific with $address($nick,5)
but not simply $nick. big fail

 Respond  
Jethro   -  Jan 07, 2011

Good question, TravisT. Regretfully to say that this snippet has to be taken out of TheDreamLord's personal collection. Many people fail to revise a submitted snippet to make it suitable for public use. :/ But don't be surprised this will happen over and over and over again...

 Respond  
TravisT   -  Jan 07, 2011

Why set a variable named %repeat?

 Respond  
Jethro   -  Jan 07, 2011

This type of snippet never gets old.

 Respond  
deleteme1   -  Jan 07, 2011
 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.