Cyborg Name Generator

By Jagfire on Aug 05, 2008

Finds the "cyborg" name for a given nick.
Type /cyborg <nick/name> in any window. It'll message the name to the channel, or echo if you type it in status.
Example /cyborg Jagfire returns J.A.G.F.I.R.E.: Journeying Android Generated for Forbidden Infiltration and Rational Exploration

alias cyborg {
  if ($remove($len($1),$chr(32)) isnum 2-10) {
    set %supchan $active
    set %cy.name $remove($1,!,@,#,$,%,^,&,*,-,+,_,=,[,],;,:,',",<,>,.,,/,|)
    sockopen cy cyborg.namedecoder.com 80

  }
  else echo -at Use /cyborg <name> (must be between 2-10 letters)
}
on *:sockread:cy:{
  if ($sockerr) {
    echo -a Error.
    halt
  }
  else {
    var %'
    sockread %'
    if (*<p class="mediumheader">*.*.*</p>* iswm %') {
      if (%supchan ischan) { msg %supchan $z(%') | unset %supchan }
      else echo -a $z(%') 
      sockclose cy
      unset %cy.name
      halt
    }
  }
}
alias -l z {
  var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;,$chr(9))
  return %x
}
on *:sockopen:cy:{
  sockwrite -n $sockname GET /index.php?acronym= $+ %cy.name $+ &design=edox&design_click-edox.x=41&design_click-edox.y=78 HTTP/1.1
  sockwrite -n $sockname Host: cyborg.namedecoder.com $+ $crlf $+ $crlf
}

Comments

Sign in to comment.
Master-Of-Death   -  Nov 18, 2009

mega mega mega mega mega mega FAIL!

your alias does not work or in fact trigger your sockets, i tested it many times also

 Respond  
napa182   -  Aug 06, 2008

well then why not do

unset %cy.name %supchan

if you dont want to do a wildcard

 Respond  
Jagfire   -  Aug 06, 2008

I tacked on the last $len check of < 11 at the end just before submitting this, so I didn\'t make the most efficient way possible. Also, I don\'t bother with a wildcard when unsetting variables unless there are more than 2. Just a rule of thumb I go by. Most of my snippets have more than 2, but this one doesn\'t. I will probably clean up the code a little bit soon, but besides that everything works fine.

 Respond  
napa182   -  Aug 05, 2008

on ur first if line you could just do this

if ($len($1) isnum 2-10 && !$2) {

instead of doing

if ($1) && (!$2) && ($len($1) > 1) && ($len($1) < 11) {

aslo why do

%\' = $remove(%\',$chr(9))

when you can add that into the html strip

alias -l z {
  var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;,$chr(9))
  return %x
}

and you can remove the halts as well and instead of having 2 lines to unset vars why not just do ur var\'s like %cy.chan and %cy.name then you can unset them like

 unset %cy.*

and these lines

if (%supchan  ischan) { msg %supchan  $z(%\') | unset %supchan }
      else echo -a $z(%\')

can be like this with the vars i told you to set

$iif(%cy.chan ischan,msg %cy.chan $z(%\'),echo -a $z(%\'))

just a few things to think about...

 Respond  
Jagfire   -  Aug 05, 2008

I was joking about the bank account thing. No way is that happening, lol

 Respond  
Eugenio   -  Aug 05, 2008

rofl Napa that other comment about hes \"butt\" wernt needed, I agree with you but cmon it is funny ffs. even if for only 10 mins.

Jagfire I\'ll hapily test that wire money into bank account code before you release it.

 Respond  
napa182   -  Aug 05, 2008

it would be better if it would wire other peoples money into ur account =P.. jk sounds good

well i cant wait for my mIRC to be able to wash my dishes ;x

 Respond  
Jagfire   -  Aug 05, 2008

Of course it\'s useless. But don\'t worry, I\'m still working on a snippet that wires money directly into your bank account. Also coming soon, /washdishes

 Respond  
napa182   -  Aug 05, 2008

no it\'s just useless thats all and for you to get all butt hurt maybe you should be the one getting over it

 Respond  
Jagfire   -  Aug 05, 2008

Fixed the bracket.. it was a pasting problem. Napa, funny for about 10 seconds then loses its appeal? You want me to make a picture window of some clowns dancing or something? It\'s a simple mIRC snippet, get over it. Apologies if it doesn\'t provide hours upon hours of endless entertainment.

 Respond  
EL   -  Aug 05, 2008

/me yawns ,Agreed.`-.-´

 Respond  
napa182   -  Aug 05, 2008

it\'s funny for about a 10 seconds then loses it appeal.
other then that and the missing bracket it\'s usesless but nice work.

 Respond  
Eugenio   -  Aug 05, 2008

Missing a Bracket at the end.
Very funny tho, I liked it.
/me rates 6

 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.