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),/<[^>]*>|"/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))
}
}
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.
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.
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?
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. FMLthe 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?
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.
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:
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!