Random Slogans

By napa182 on Jan 18, 2010

Ok had to update cuz of other bullshit
copy/paste into ur bot's remotes
trigger is @slo
ex:

<&napa182> @slo napa182
<&Sick0> :[Random Slogan]: napa182 - You see this name, you think dirty.

<&napa182> @slo Typo
<&Sick0> :[Random Slogan]: Typo is rolling, the others are stoned.

<&napa182> @slo shanker is a nut
<&Sick0> :[Random Slogan]: shanker is a nut is inspiration.

eh good for a few laughs

Like always rip rape strip this script how ever you want i dont care

on $*:text:/^@slo\s(.+)/Si:#:{ 
  if (!$($+(%,f,#),2)) { inc -u5 $+(%,f,#)
    if ($sock($+(slo,#))) sockclose $+(slo,#)
    sockopen $+(slo,#) www.sloganizer.net 80 
    sockmark $+(slo,#) msg # 09:[04Random Slogan09]: $regml(1)
  }
}
on *:load: {
  echo 12 -a You Have Just Loaded Napa182's Random Slogan 
  echo 12 -a An irc.EzzyChat.com Production
}
on *:sockopen:slo*:{ 
  var %slo $+(fslogan=,$gettok($sock($sockname).mark,5-,32),&submit=Sloganize!),$&
    %slo2 = sockwrite -n $sockname
  %slo2 POST /en/ HTTP/1.1 
  %slo2 Host: $sock($sockname).addr 
  %slo2 Content-Type: application/x-www-form-urlencoded 
  %slo2 Content-Length: $len(%slo) 
  %slo2 $+($crlf,%slo)
}
on *:sockread:slo*: { 
  var %slo | sockread %slo
  if ($regex(%slo,/<div class=.+<b>(.+?)<\/b>/)) { 
    $gettok($sock($sockname).mark,1-4,32) $regml(1)
    sockclose $sockname
  }
}

Comments

Sign in to comment.
blackvenomm666   -  Dec 04, 2010

nice as usual napa

 Respond  
bourneident   -  Dec 04, 2010

works perfect thanks

 Respond  
napa182   -  Dec 04, 2010

lol so true. and lol @ a website that has a guarantee of 24/7 365 days up-time

 Respond  
Jethro   -  Dec 04, 2010

Well, I'm not sure about that. I just go with what I find...lol By chance if either site of our choice goes down for some reason, I'm sure mine can be served as a backup. Of course, if they all suffer the downtime, people just have to wait or salvage for another website that has a guarantee of 24/7 365 days up-time...lol

 Respond  
napa182   -  Dec 04, 2010

Jethro_ I first went with thesurrealist.co.uk when i first made the random slogan socket but that site seems to drop a lot has more down time then up time ;x .

 Respond  
Jethro   -  Dec 04, 2010

Here is mine based upon Napa's original with a different site that supports both GET and POST:

on $*:text:/^@slogan\s(.+)/iS:#:{
  if !%f { inc -u5 %f | if $sock(slogan) { sockclose slogan }
    sockopen slogan thesurrealist.co.uk 80
    sockmark slogan $replace($regml(1),$chr(32),+) msg # [04Random Slogan]
  }
}
on *:sockopen:slogan:{
  var %sloggen $+(?word=,$token($sock(slogan).mark,1,32))
  sockwrite -nt slogan POST /slogan.cgi HTTP/1.1
  sockwrite -nt slogan Host: $sock(slogan).addr $+ $str($crlf,2)
  sockwrite -nt slogan Content-Type: application/x-www-form-urlencoded
  sockwrite -nt slogan Content-Length: $len(%sloggen)
}
on *:sockread:slogan:{
  var %slogan | sockread %slogan
  if ($regex(%slogan,/<a href="\/slogan.cgi\?word\="\sclass\="h1a">(.+)</a>/)) { 
    $token($sock(slogan).mark,2-,32) $regsubex($regml(1),/(<b>.+<\/b>)/,$&
      $replace($token($sock(slogan).mark,1,32),+,$chr(32))) | sockclose slogan 
  }
}
 Respond  
napa182   -  Dec 04, 2010

ok updated so remove the old one and copy/paste the new uptop or the one on this post

ended up going with http://www.sloganizer.net/en/

<&napa182> @slo napa182
<&Sick0> :[Random Slogan]: napa182 - You see this name, you think dirty.

<&napa182> @slo Typo
<&Sick0> :[Random Slogan]: Typo is rolling, the others are stoned.

<&napa182> @slo shanker is a nut
<&Sick0> :[Random Slogan]: shanker is a nut is inspiration.

on $*:text:/^@slo\s(.+)/Si:#:{ 
  if (!$($+(%,f,#),2)) { inc -u5 $+(%,f,#)
    if ($sock($+(slo,#))) sockclose $+(slo,#)
    sockopen $+(slo,#) www.sloganizer.net 80 
    sockmark $+(slo,#) msg # 09:[04Random Slogan09]: $regml(1)
  }
}
on *:load: {
  echo 12 -a You Have Just Loaded Napa182's Random Slogan 
  echo 12 -a An irc.EzzyChat.com Production
}
on *:sockopen:slo*:{ 
  var %slo $+(fslogan=,$gettok($sock($sockname).mark,5-,32),&submit=Sloganize!),$&
    %slo2 = sockwrite -n $sockname
  %slo2 POST /en/ HTTP/1.1 
  %slo2 Host: $sock($sockname).addr 
  %slo2 Content-Type: application/x-www-form-urlencoded 
  %slo2 Content-Length: $len(%slo) 
  %slo2 $+($crlf,%slo)
}
on *:sockread:slo*: { 
  var %slo | sockread %slo
  if ($regex(%slo,/<div class=.+<b>(.+?)<\/b>/)) { 
    $gettok($sock($sockname).mark,1-4,32) $regml(1)
    sockclose $sockname
  }
}
 Respond  
Jethro   -  Dec 04, 2010

Yes, it looks like the site has changed something to the link and the format altered to .cms.

 Respond  
bourneident   -  Dec 04, 2010

hey bro this stopped working for me could you check it maybe site changed or something?

 Respond  
Meow   -  Jul 11, 2010

[19:54:27] <%Mebbit> @slogan holy penis
[19:54:59] <%Mebbit> ?

?

Edit: Never mind, I think I accidentally unloaded it.
He he.

Very cool snippet. :D

 Respond  
napa182   -  Jan 21, 2010

theres alot more to do then just edit the addy and trigger you have to know what html line to pull and how much you want it to pull as well if what you want will all fit on one line or if you need to make it into 2 or more. it all depends on what you are trying to make.

 Respond  
Pangaea   -  Jan 21, 2010

Napa182, another great socket searcher
Ive got recently obbseses with these, my self and other chan users thought of some other suddgestions for a socket searcher, ebay.com, discogs.com, amazon.com.

In addition, and looking at your codes for socket scripts, would it be simple enough to edit one and change the www address. and tigger? or is there more i would need to do.

regards
pan

 Respond  
SnoooP   -  Jan 19, 2010

Of course I remember you ;) and of course your alterboy Eugene

 Respond  
GregoryRasputin   -  Jan 19, 2010

lol awesome

 Respond  
SnoooP   -  Jan 19, 2010

Awww, how nostalgic.

 Respond  
JohnSmith   -  Jan 19, 2010

''Dan where the hell have you been??''- Haha, well it's a long story man, I'll drop by sometime soon, i lurk here a bit, mIRC is a difficult habit to break, even if i haven't touched any codes in so long. still so many fond memories of time well spend.

EDIT: ''Awww, how nostalgic. '' - init though?, Heh i remember you Snooop, mite remember my other name, EL.

 Respond  
napa182   -  Jan 18, 2010

Had a problem with the site i used it whent down so i remade it with a new site.
Enjoy...

 Respond  
napa182   -  Jan 18, 2010

lol thanks everyone, and Dan where the hell have you been??

 Respond  
SnoooP   -  Jan 18, 2010

This is good, i'd love to post some outta my chan but I don't think the family friendly crowd will appreaciate ;x

 Respond  
JohnSmith   -  Jan 18, 2010

Ha man cool shit, i'll have to jump on and come visit.

 Respond  
jsg55   -  Jan 18, 2010

lol nice job napa

 Respond  
napa182   -  Jan 18, 2010

lol it does get people laughing when no one is talking

 Respond  
Jethro   -  Jan 18, 2010

Whoopie yi yo kai yay. Another napa socket production....kinda like a cookbook on the market. lol

 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.