FML Random Generator

By Jethro on May 08, 2011

Ok, this is yet another forum request asked by the member b0sse who said that every FML snippet he's come across at present have stopped working for him. I thought I'd post my version of it, which is working rather well. I hope those who're interested will find it enjoyable. Please note that this snippet is made for bot use only.

This snippet will listen to both channel and private, and the command is simply: !fml

on *:sockopen:%fml-:{ 
  tokenize 94 $sock(%fml-).mark 
  if $sockerr { $5 Connection Error has Persisted! | return }
  $1-2 | $1 $3 | $1 $4 | $1
}
on *:sockread:%fml-:{
  tokenize 94 $sock(%fml-).mark
  if $sockerr { $5 Reading Error has Persisted! | return }
  var %fml | sockread %fml 
  if $regex(%fml,/"fmllink">(.*)</a><a\s/) {
    $5 $regsubex($regml(1),/<[^>]*>|&quot;/g,) FML 
    sockclose %fml-
  }
}
on *:text:$($iif(!fml = $strip($1),$1)):*:{ 
  if !%ffml { inc -u3 %ffml | set -u3 %fml- $+(fml,.,$ticks,.)
    if $sock(%fml-) { sockclose $v1 } 
    sockopen %fml- www.fmylife.com 80
    sockmark %fml- $+(sockwrite -nt %fml-,^,$&
      GET /random HTTP/1.0,^,Host: $sock(%fml-).addr,$&
      ^,Connection: close,^,.msg $iif(#,#,$nick))
  }
}

Comments

Sign in to comment.
dma   -  Dec 18, 2015

how can i change the trigger to ' from !

 Respond  
H0LLYWOOD   -  Feb 06, 2013

is there a way to get this updated. ive used it forever and am not sure how to fix it. i made a half-way trigger so it displays every 2 minutes automatically. if theres a way to update this and include the trigger for auto. id greatly appriciate it. thanks alot.

Chromatic  -  Oct 12, 2013

It is 10/12/13 -- And this script works flawlessly. I only made one single change, and that was mainly for cosmetic purposes. Just to verify for those who are iffy on trying to use it.

My change likely had nothing to do with it working.. but.. I added this -- which is on the last line of code:

^,Connection: close,^,.describe $iif(#,#,$nick))

Which just makes it "describe" instead of msg.. Shouldn't make any difference on how it operates. So use the script without worry.

Thanks for making this snippet up!

Sign in to comment

cptpan   -  Sep 28, 2012

This script randomly stopped works. FML

MashhitDK  -  Apr 04, 2013

LoL

Sign in to comment

MashhitDK   -  Sep 03, 2011

Nicely nicely... much appreciated \o/

 Respond  
b0sse   -  Jul 21, 2011

Dont think thats it. Seeing as other scripts that posts long lines work perfectly.
But, I guess I'll try grabbing latest version of mIRC anyway, to see if it solves issue, thnx ^^

 Respond  
Jethro   -  Jul 20, 2011

Perhaps the server you use doesn't allow long length of text. mIRC sends out a message based on the maximum allowance required by a server. This might be the reason why it gets cut off. I'll suggest that you upgrade your mIRC version to the latest available, because it has a new feature that chops up long text into smaller messages to ensure that it gets sent completely intact. This feature is enabled by default.

 Respond  
b0sse   -  Jul 20, 2011

very weird. nearly all my fml's turn out like that now.
completely chopped off.

 Respond  
Jethro   -  Jul 19, 2011

Well, that is not the full message. It's supposed to be:> Today, I was on an airplane that was experiencing some turbulence. Feeling anxious, I reached over and grabbed my husband's hand for comfort. He then said, "Why are you scared of dying? You're not even pretty." FMLI have not been able to encounter the so-called output you received upon trigger thus far.

 Respond  
b0sse   -  Jul 19, 2011

I mean, whats the FML about this?

Today, I was on an airplane that was experiencing some turbulence. FML

lol

 Respond  
b0sse   -  Jul 19, 2011

I'm using SysReset 2.55, which uses an old version of mIRC 6.21.
But I've never had any problems before, so it shouldnt really matter.

Maybe those FML's aren't longer than that? Maybe its just the guys who posted them that is morons?
hehe

 Respond  
Jethro   -  Jul 19, 2011

I'm uncertain why you don't get a complete message. It seems to be working well for me, and I'm using the latest mIRC version 7.19.

 Respond  
b0sse   -  Jul 19, 2011

No problem, Jethro_ thanks for having a look at it.
Weird though, cause I keep getting stuff like this:

<me> !fml
<CookieBOT> Today, I found out the reason I can't get a job. FML
<me> !fml
<CookieBOT> Today, I had my 21st birthday party. FML

I mean its like they are incomplete, missing the punchline or something?

 Respond  
Jethro   -  Jul 18, 2011

Excuse me for the belated reply. I've been on vacation.

B0sse, upon retesting, I couldn't reproduce the issue you were having. It's currently working fine for me:> !fml

Today, my cousin came to visit from America. While out shopping, she said loudly that she was having trouble finding clothes to fit around her huge fanny, causing a lot of people to stare in our direction. I had to explain to her that "fanny" in the UK means "vagina. FML !fml Today, after waiting to get home to go to the bathroom, my six year old neighbor popped out and literally scared the shit out of me. FML !fml Today, I found out that if you lose contact with people in your previous school, they decide to spread rumors about you and make everyone believe that you're dead. FML
 Respond  
b0sse   -  Jul 15, 2011

the fmylife.com site must have updated/changed something on its site, cause recently this script have been acting weird. It cuts out the beginning with "Today" and some more and leaves only like the 2nd half of each FML, or the other way around. It only leaves the first half. So it gets cut off.

I've had no problems with it before, so seems they must have changed something with their site?

 Respond  
irchainscriptz   -  May 15, 2011

Nice work once again Jethro_

 Respond  
MashhitDK   -  May 15, 2011

Just wanted to say thanks... nice work

 Respond  
b0sse   -  May 12, 2011

yeap, i noticed :D hehe

 Respond  
Jethro   -  May 11, 2011

That website is up again. You'll have to wait it out when the site gets down for any reason and be patient. :/

 Respond  
b0sse   -  May 11, 2011

naaaw...
now the www.fmylife.com is down for some reason :/
too bad.

 Respond  
b0sse   -  May 10, 2011

yeah, its weird indeed :o
and no, my background is not neon green :P
its white hehe

 Respond  
Jethro   -  May 09, 2011

I've had the pleasure in trying napa's version and it's still working. It's really bizarre it failed on you though. The message output color is neon green; I hope your mIRC background isn't in that color... lol

Moreover, the "Net avenir" stuff you were talking about didn't exist in napa's. It could be generated from other people's scripts you were using.

 Respond  
b0sse   -  May 09, 2011

@napa182: Hmm, weird. Then I don't know whats wrong. Btw, how can you not copy it right? Its just copy/paste lol.
Maybe its my irc client? old version or whatever maybe?

anyway, I've always like your snippets napa182.

 Respond  
napa182   -  May 09, 2011

oh it's cool Jethro_ mine is already posted as a comment an it does work i just tested it. maybe b0sse didn't copy it right idk.

 Respond  
Jethro   -  May 09, 2011

Thank you two for your nice, supportive words about my snippet. Napa182, you're welcome to post your working one here so other people can benefit from it in the future. ^^

 Respond  
b0sse   -  May 09, 2011

Thanks a lot Jethro_
this works perfect.

@napa182: I did try all the one's in comments etc as well. Including yours. And couldnt get it to work. Either it returned nothing at all. Or it had that "Net avenir" stuff at the beginning.

 Respond  
napa182   -  May 09, 2011

nice work Jethro_ as always, but b0sse is wrong in saying that every FML snippet he came across don't work unless he didn't try mine in one of the comments i made. =P
anyways nice work again. 8/10 +Like

 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.