Success Bot Part 1

By v9xx on Jun 03, 2010

So by saying ?trig ?owner ?home ?phrase or ?whoami will give you information
saying '!CMD Try' will tell you that the script is working

on *:TEXT:*:#: { 
if ( $me == %bname ) {
   var %pwrofuser = %pwr [ $+ [ $nick ] ] 
   if ( $1 == ?trig ) { msg $chan the trigger is ' %trig ' }
   if ( $1 == ?phrase ) { msg $chan the phrase is ' %phrase ' }
   if ( $1 == ?home ) { msg $chan my home is ' %chan ' }
   if ( $1 == ?owner ) { msg $chan the owner is ' %owner ' }
   if ( %pwrofuser >= 0 ) {
      if ( $1 == ?whoami ) { 
         msg $chan you ( $+ $nick ) have %pwr [ $+ [ $nick ] ] power  
      }
      if ( $1 == %trig $+ [ %phrase ] ) {
         if ( $2 == try ) { msg $nick Pass! }
      }
   }
}
;###NOTES###
;DO NOT ADD THIS THESE ARE NOTES
; ON THE LINE 'if ( $2 == try ) { msg $nick Pass! }'
; You may continue to add lines to do other functions
;ALSO ON YOUR VARIABLE PAGE YOU WILL NEED TO ADD:
;you can replace anything after the space in a variable
;on the variable %pwr(YOUR_NICK_NAME) 
;change YOUR_NICK_NAME to your actual nickname
;Take Away the parenthesis 
;DO NOT ADD A SPACE BETWEEN %pwr AND YOUR NICK
;THE FOLLOWING IS WHAT YOU NEED TO ADD
;END OF NOTES
;###END OF NOTES###

%trig !
%phrase CMD
%chan #THE_NAME_OF_YOUR_CHAN
%owner YOUR_NICK_NAME
%pwr(YOUR_NICK_NAME) 0

Comments

Sign in to comment.
Aucun50   -  Jun 04, 2010

You really should look at your script, you have an extra }

 Respond  
v9xx   -  Jun 04, 2010

Hey guys thanks for the advice and criticism believe it or not i like it. keep commenting.
I fixed the code as you requested. Its open source yes. I removed the tutorial stuff and I added the on text event. I forgot to mension that you need to add it to your REMOTE section
anyways thanks. I'll post more soon. I would have responded sooner but I Lost ALL of my code :( and this helped me get some of it back, anyways THANKS

 Respond  
GuitarMasterx7   -  Jun 04, 2010

haha indeed xD

 Respond  
Jethro   -  Jun 04, 2010

When you see napa types that, you know at first glance that a snippet is "in question."

 Respond  
napa182   -  Jun 03, 2010

lolwut

 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.