Simple op - voice modes For A bot

By napa182 on Mar 09, 2008

place in your Bot's remotes and set your self as owner by typing /owner nick . commands are +q +a +o +h +v -q -a -o -h -v with no nick after will mode ur self with a nick after will mode that nick..

on *:load: { 
  echo 12 -a You Have Just Loaded Napa182's Bot Modes 
  echo 12 -a A Script0rs Inc. Production 
  echo -a 14,1(14,1¯15,1¯0,1¯0,1º $+($chr(171),$chr(164),$chr(88),$chr(167),$chr(199),$chr(174),$chr(238),$chr(254),$chr(116),$chr(48),$chr(174),$chr(167),$chr(88),$chr(164),$chr(187)) º0,1¯15,1¯14,1¯) $+ $chr(153)
}
alias owner { auser owner $address($1,2) }
on $owner:text:/^([+-][qaohv])\s?(.+)?/iS:#:{ mode # $regml(1) $iif(!$regml(2),$nick,$regml(2)) }

Comments

Sign in to comment.
Bullet_Dodger   -  Sep 26, 2008

Nice script [7/10]

 Respond  
SnoooP   -  May 20, 2008

i prefer the on input tbh :P nice though :D

 Respond  
napa182   -  May 20, 2008

also if you dont want to use a bot and have it as an on input
just copy/paste into a new remote

on *:load: { 
  echo 12 -a You Have Just Loaded Napa182's User Modes 
  echo 12 -a A Script0rs Inc. Production 
  echo -a 14,1(14,1¯15,1¯0,1¯0,1º $+($chr(171),$chr(164),$chr(88),$chr(167),$chr(199),$chr(174),$chr(238),$chr(254),$chr(116),$chr(48),$chr(174),$chr(167),$chr(88),$chr(164),$chr(187)) º0,1¯15,1¯14,1¯) $+ $chr(153)
}
on *:input:*: { if ($regex($1,/^[+-][qaovh]$/)) { mode $chan $1 $iif(!$2,$nick,$2) } }
 Respond  
EL   -  Apr 26, 2008

Yea it will but u would need to modify it a bit.

 Respond  
A Hylian Human   -  Apr 26, 2008

Just a quick question, can this also work for ban? (+/- b)

 Respond  
EL   -  Mar 10, 2008

Er i need fricken spell check,my little rant on regex was to jonesy44.

@ Anti,....smart ass.

@ Napa182,Er yeah sorry about the $2 again i typoed my own fricken nickname..again XD,tested it after you ask about wtf i was on in chat lol.Works fine.`-.-

 Respond  
Anti   -  Mar 10, 2008

EL who are you talking about OhGoody? EndlessEnds? ring a ding or a bell.. < got carried away :D

 Respond  
EL   -  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  
napa182   -  Mar 09, 2008

@Lindrian ah thanks.

This was ment to be an update on one of my old scripts but for some reason it made it as a new post =/

 Respond  
Jonesy44   -  Mar 09, 2008

Grrr, hawkee should add edit post.
Hehe, changed my mind whilst typing, was gonna go 7,. but since i use it and it\'s pretty dam usefull. 8 ;-)

 Respond  
Jonesy44   -  Mar 09, 2008

lol, Cheiron xD

But yeah, weorks well, nice simple script, i think i\'ll second that 8. bcos .. im now using it ;-)

 Respond  
Cheiron   -  Mar 09, 2008

hehe.. i hear you on that one Jonesy. i am confuzzled myself and looks like it did the same with my last script \"Unique Auto Voicer\" to Lindrian. but anyways.... nice script napa, clean and simple and works nice. gets a 7 from me :)

 Respond  
Lindrian   -  Mar 09, 2008
if ($regex($left($1,1),/^[+-]$/)) && ($regex($right($1,1),/^[qaovh]$/)) {

replace with

$regex($1,/^[+-][qaovh]$/)
 Respond  
Jonesy44   -  Mar 09, 2008

wishes he had a clue wtf regex\'s are

And yup, i\'ve read the help file ;-)

 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.