EL commented on a Page, Simple op - voice modes For A bot  -  Mar 10, 2008

Holy hell im not awake(3:27am)...not the code i tested lol waws thinkin your bot dialog(!say,!act) yeah you know the one.Ok tested this its actully not bad,the use of regex makes it a small ass code so thats nice big plus there,maybe some additions,makin it target $2 an such.

@ joesy44

$regex($1,/^[+-][qaovh]$/)
;useing Lindrian\'s example

You know the $1 = first thing in a string obviously,now im no expert on $regex but i ll try to explain if anyone else corrects me thats fine to.Ok the $regex statment is lookin for a few things within the $1 that has to match,that is \"- or + and qaovh\",But $regex is specific and is lookin for the begining character to start with + or - thats wat the ^ tagged to firs start if the /^[+-] part of the statment meaning that data within the first set of brackets must come first an it is case it\'s looking for either or here \"+ or -\"( you can not have +-).The $ part of the statement is tagged to the last set of brackets [qaovh]$/ ,means your last character and has to be one of those with in the brackets or it wont trigger,Its exact you have to have you first character + or - an your last character one of qaovh or it won\'t work.So its a cleaner an more effecient way of the statemnt \"if (+v == $1) { mode $chan +v $nick then stacking the if statments on top of one another plus its exact.Oh an the $iif statement makes it even more exact meaning that you cant have anything after +v (+v Nemesis wont work),altho like i said in my mess up comment that i rather it target both oneself an you an target others.Hope i didnt confuse you on that explination of this small $regex statment,if so im sure some one can clarify better.`-.-

 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.