add/read profile for bot(s)

By era on May 04, 2004

Uhu a little snipper for bot(s). If someone wants to add his/her info.
Just type !add and for reading: !info
Have fun!

ON *:TEXT:!add *:#: { 
  set $+(%,info,$nick) $2- 
  notice $nick Your profile has been set 
} 
ON *:TEXT:!info &:#: { 
  if ($($+(%,info,$2),2)) { 
    notice $nick Info for $+($2,:) $ifmatch 
  } 
  else { 
    notice $nick $2 does not have a infoprofile. 
  } 

;Here lies the end of the script for now....if you find any bugs are things that can be achieved - mail me rgc@hot.ee =) Have fun

Comments

Sign in to comment.
Aeval   -  Feb 12, 2010

Thank you

 Respond  
Jethro   -  Feb 12, 2010

Aveal, the info is saved to your mirc's variables.

 Respond  
Aeval   -  Feb 12, 2010

At the risk of sounding like a complete noob - where does the 'info' save to?

 Respond  
Korvin   -  Nov 18, 2007
/set %info [ $+ [ $nick ] ] $iif(%info [ $+ [ $nick ] ],%info [ $+ [ $nick ] ] >< $date $2-,$date $2-)
 Respond  
Korvin   -  Nov 17, 2007
  set $+(%,info,$nick) $2- 

could be this: so you can stack info:


/set %info [ $+ [ $nick ] ] $iif(%info [ $+ [ $nick ] ],%info [ $+ [ $nick ] ] >< $date $2-,$date $2-)
 Respond  
ermansanidhya   -  Nov 17, 2007

on 1000:TEXT:!addinfo :: {
write info.txt Added by $nick $+ : $2-
msg $chan info: $2- Has Been Added! As info Number $lines(info.txt)
}
on 1000:TEXT:!findinfo :: {
var %find $read(info.txt, nw, $+ $2- $+ )
if (%find == $null) {
msg $chan Sorry I Couldn\'t Find The info You Are Looking For.
}
elseif (%find != $null) {
msg $chan Found Ur Search: info: %find info#: ( $+ $readn $+ / $+ $lines(info.txt) $+ )
}
}

aah use this one

 Respond  
ermansanidhya   -  Nov 17, 2007

not work :)

 Respond  
era   -  May 25, 2004

all works fine for me anyway

 Respond  
TeQh   -  May 06, 2004

on the !info, need a } at the end.

 Respond  
Nervous   -  May 04, 2004

nice incorporation of $ifmatch and $+()

 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.