Slogan Maker

By _Dean_ on Sep 11, 2011

• Copy and paste this script into a new remote page (alt+r)

in channel, type

!slogan "word"

example

<~Dean> !slogan hawkee
<&Botname> Look at hawkee to look your best.

this script was made by request in forum, requested by Mtn64

on $*:text:/^!slogan\s(.+)/iS:#:{
  if (!%floods) { 
    $iif($sock(slogan), sockclose slogan)
    sockopen slogan sloganmaker.com 80
    sockmark slogan $replace($regml(1),$chr(32),+) msg $chan
    inc -u3 %floods
  }
  else { .notice $nick You need to wait 3 seconds to trigger it again | return }
}

on *:sockopen:slogan:{
  tokenize 32 $sock(slogan).mark
  if ($sockerr) { $2-3 An error happenned with the server connection: $sock(slogan).wsmsg | sockclose slogan }
  else {
    var %x = sockwrite -nt $sockname, %slogan = $+(user=,$1,&send=Make+a+Slogan%21)
    %x POST /sloganmaker.php HTTP/1.1
    %x HOST: sloganmaker.com
    %x Connection: close
    %x Content-Type: application/x-www-form-urlencoded
    %x Content-Length: $len(%slogan)
    %x $crlf $+ %slogan
  }
}

on *:sockread:slogan:{
  tokenize 32 $sock(slogan).mark
  if ($sockerr) { $2-3 An error happenned with the server connection: $sock(slogan).wsmsg | sockclose slogan }
  else {
    sockread %x
    if $regex(%x,/<p>(.+)<\/p><\/div>/) {
      $2-3 $regml(1)
    }
  }
}

Comments

Sign in to comment.
Stewie1k94   -  Oct 13, 2011

lmao!

 Respond  
Stewie1k94   -  Oct 11, 2011

What is up with them faces? Do you have to use them damn faces?

 Respond  
alabama   -  Oct 10, 2011

@extremity, i think im gona make that ol

 Respond  
napa182   -  Oct 10, 2011

Edited.
Good move deleting his trolling comments..

 Respond  
extremity   -  Oct 10, 2011

Is there a public website for all these faces?

I think you, alabama, should make a script to return random silly faces. It would both fit you and show how things should be done ;)

 Respond  
napa182   -  Oct 10, 2011

Edited due to the removal of the troll...

 Respond  
_Dean_   -  Oct 10, 2011

Jethro and FelicianoX i think we have a new MSL master hahahahahahahha

 Respond  
Jethro   -  Oct 10, 2011

What difference does it make between your version and Dean's? The only difference you've made is compact the code by adding the pipes and stack up the curly brackets.

 Respond  
FelicianoX   -  Oct 10, 2011

Removing new lines and adding pipes are hard as fuck, I respect you.

 Respond  
napa182   -  Oct 10, 2011

alabama wrote:

i can do way better

Well then lets see it....

 Respond  
Jethro   -  Oct 10, 2011

Dean, please take charge of your own thread and delete button to prevent trolls from inflaming your thread unnecessarily.

 Respond  
Frenetic   -  Oct 10, 2011

Do you lot have a tattoo on your forehead saying "I'M A DRAMA QUEEN"?

 Respond  
_Dean_   -  Oct 10, 2011

alabama is the google boy... everything he finds there he vomits here, such lame
if you check he said "sucks" without no reason, and didnt say anything about the code
cause he cant find a way to criticize it, and do it better...

he thinks i care if he post this

 Respond  
Jethro   -  Oct 10, 2011

I can't believe this. You already have your plagiarized material ready to wait for me. I have to say you're helpless and hopeless. May God have mercy on your poor, poor soul. I know you'll respond and treat this matter as a trolling game, so I will stop feeding you at once.

 Respond  
Jethro   -  Oct 10, 2011

If I had more power to save you from devaluing and demoralizing Hawkee, I'd gladly accept it. Thus far, you're the only person to save yourself and fight your inner demons, and you have yet to conquer your own worst enemy. Perhaps you never will.

 Respond  
Jethro   -  Oct 10, 2011

alabama, you need to discontinue this meaningless attack that does nothing good but inflame this thread and make yourself look bad. It's time you come to a realization to get along with all the members at Hawkee. I'm saying this to you because I was there, doing that myself, not realizing what a conniving and despicable person I was looking back.

 Respond  
Frenetic   -  Sep 12, 2011

@Dean, that one worked.
@Jethro, I can.
@KillerX No idea.
@Meta, No, I use a different client, but tried this on mIRC so I'm using the other client to trigger it.

 Respond  
Meta   -  Sep 12, 2011

Frenetic, are you trying to trigger the script from the client it's running on?

Btw, it works for me in 7.19, so I can't really see why it wouldn't work in 7.17 if it doesn't...

 Respond  
KilllerX   -  Sep 12, 2011

Not sure why it wouldn't work in 7.17, it works for me in 7.19. But anyway, fun script.

 Respond  
Jethro   -  Sep 11, 2011

Frenetic, open your browser and see if you can connect to sloganmaker.com

If you can't access it, don't expect the socket script to be able to.

 Respond  
Jethro   -  Sep 11, 2011

Omitting

var %x

unless you want to leave its tracks in the variables. That's what you've done.

 Respond  
_Dean_   -  Sep 11, 2011

please test this version using vars
erase the one you have

on $*:text:/^!slogan\s(.+)/iS:#:{
  if (!%floods) { 
    $iif($sock(slogan), sockclose slogan)
    sockopen slogan sloganmaker.com 80
    set -u5 %maker $replace($regml(1),$chr(32),+) 
    set -u5 %channel $chan
    inc -u3 %floods
  }
  else { .notice $nick You need to wait 3 seconds to trigger it again | return }
}

on *:sockopen:slogan:{
  if ($sockerr) { msg %channel An error happenned with the server connection: $sock(slogan).wsmsg | sockclose slogan }
  else {
    var %x = sockwrite -nt $sockname, %slogan = $+(user=,%maker,&send=Make+a+Slogan%21)
    %x POST /sloganmaker.php HTTP/1.1
    %x HOST: sloganmaker.com
    %x Connection: close
    %x Content-Type: application/x-www-form-urlencoded
    %x Content-Length: $len(%slogan)
    %x $crlf $+ %slogan
  }
}

on *:sockread:slogan:{
  if ($sockerr) { msg %channel An error happenned with the server connection: $sock(slogan).wsmsg | sockclose slogan }
  else {
    sockread %x
    if $regex(%x,/<p>(.+)<\/p><\/div>/) {
      msg %channel $regml(1)
    }
  }
}
 Respond  
_Dean_   -  Sep 11, 2011

i know there is some scripts like that, but i saw a lot of ppl posting scripts made by request in forum, so i decide to post it too...

Frenetic, its really strange
since its not returning any error, i need to test it in 7.17 versions to check it
but if i have to bet in something, it would be the tokenize the $sockmark

 Respond  
Jethro   -  Sep 11, 2011

I think slogan maker socket script is too common. napa182, I and your neighbors have made it. Perhaps diversify it a bit, making something interestingly different to set yours apart from the rest. I'll rate you a 6 for being neat.

 Respond  
Frenetic   -  Sep 11, 2011

Nope, no error. Nothing, just doesn't return anything. Not sure why.

I do "!slogan test" nothing.

 Respond  
FelicianoX   -  Sep 11, 2011

Frenetic, next time atleast say what's not working. The bot is not messaging the channel? or you're getting an error in your status window?

 Respond  
_Dean_   -  Sep 11, 2011

there is any error returning in status window? i tested here with version 6.35 and 7.14 and worked, please be more specific

 Respond  
Frenetic   -  Sep 11, 2011

Not working for me on, 7.17.

 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.