If you meant, tommek's script, then yes it has serious parsing issues that will cause it to take forever to finish. It runs a huge series of scrubbers over the entire html, this will take forever.Andreoli wrote:Ok, i got it working, but it has so much lag once I issue the command !fmylife, is anyone able to fix this by editing the script? Appreciate the help, got the script working but takes it 4 minutes to answer one command.
Webby did this within 10 seconds. It uses regexp and regsub to scrub out excessive html elements. His script can do the same thing.[10:34am] <speechles> !webby http://www.fmylife.com/random --regexp class="fmllink">(.*?)</p>--
[10:34am] <sp33chy> regexp: capture1 ( Today, I was taking a nap on the couch when my 2 year old daughter decided that daddy needed an ear cleaning. With all the grace of toddlerhood, she proceeded to stab me in the eardrum with a Q-tip. Now I can't hear her coming. FML )
SetAndreoli wrote:... One last thing, what is the whole script that doesn't include it to randomly announce a quote every let's say 10 minutes? ...
Code: Select all
# auto query
# 0 - off, 1 - on
set fmylife_auto_query 1
# set auto query interval (minutes)
set fmylife_auto_interval 10
~1 second.[23:27:24] <@tvrsh> !load fmylife.tcl
[23:27:24] <+bionic> -(Load)- Script: fmylife.tcl - Size: 5.73046875 Kb - Status: OK -(Info)-
[23:27:25] <@tvrsh> !fmylife
[23:27:26] <+bionic> Today, at ...
Findholycrap wrote:Add an option to be able to PM the bot and use the command...? Thanks!
Code: Select all
bind pub - !fmylife fm_main_proc
Code: Select all
bind pub - !fmylife fm_main_pub
Code: Select all
bind msg - !fmylife fm_main_msg
proc fm_main_pub { nick uhost hand chan arg } {
global fmylife_channels
if {[lsearch $fmylife_channels $chan] == -1} {
return 0
}
fm_main_proc $nick $uhost $hand $chan $arg
}
proc fm_main_msg { nick uhost hand arg } {
fm_main_proc $nick $uhost $hand $nick $arg
}
Code: Select all
if {[lsearch $fmylife_channels $chan] == -1} {
return 0
}
Code: Select all
<div class="post article" id="7966871"><p>Today, my seven-year-old sister came to stay at my house for the night. She usually just sleepwalks. But tonight she sleep-peed in my clean clothes basket. FML</p>
Another one for people to experiment with. This one is using Incith's layout as it's base. Have fun, dance like an robot. It supports ranges, categories, and other stuff. It displays verbatim as would appear on the webpage without rewording a thing. Experiment with it. It's simply another choice for an FML script amongst the withering vines that are FML scripts.<speechles> !fml
<sp33chy> Today, as I woke up early to do my physics homework, I heard my parents talk about how big a disappointment I am for them. They discussed how stupid, immature and how big a burden I was. They knew I was listening. FML
<sp33chy> #6403187 (91) I agree, your life sucks (25084) - you deserved it (2792) - On 11/22/2009 at 10:39am - misc - by Cerezo (man) - Guatemala (Guatemala) @ http://www.fmylife.com/miscellaneous/6403187
<speechles> !fml kids
<sp33chy> Today, I surprised my four year old daughter with a stuffed dinosaur. She named it 'Horny.' FML
<sp33chy> #17145702 (116) I agree, your life sucks (3993) - you deserved it (807) - On 07/17/2011 at 3:14am - kids - by douglas - United States (Washington) @ http://www.fmylife.com/kids/17145702
<speechles> !fml kids 4
<sp33chy> Today, I was invited over to a dinner with the CEOs of my company, along with my two children. My 3 year-old asked loudly why we have two "nose holes", to which my 4 year-old son replied "So you can pick your nose and still breathe!" He then demonstrated. FML
<sp33chy> #17088457 (119) I agree, your life sucks (7833) - you deserved it (1725) - On 07/13/2011 at 12:43am - kids - by ohno - United States (Colorado) @ http://www.fmylife.com/kids/17088457
<speechles> !fml love 4-6
<sp33chy> Today, I was video chatting with my boyfriend of two years. He randomly asked me to turn off my webcam. I asked why, and he said to just trust him. Turns out it was because he didn't want to see my face as he broke up with me. FML
<sp33chy> #17125458 (121) I agree, your life sucks (7530) - you deserved it (470) - On 07/15/2011 at 6:21pm - love - by emily - United States (Massachusetts) @ http://www.fmylife.com/love/17125458
<sp33chy> Today, I learned why my boyfriend of 10 months and I never hang out at his place. He still lives at home with his mother. He's 38. FML
<sp33chy> #17116757 (159) I agree, your life sucks (5933) - you deserved it (1036) - On 07/15/2011 at 1:51am - love - by brsoxgirl - United States (New Jersey) @ http://www.fmylife.com/love/17116757
<sp33chy> Max-results of 2 reached, refine search to see more...
Paging is done with the -page switch. You can embed this as I did above in the first request and it still works perfectly fine. Enjoy<speechles> !fml mi-page 7sc 5
<sp33chy> Today, I was so hungover, I started yelling at inanimate objects. My mom walked in on me calling my cereal a "worthless piece of [censored] sent from the bowels of Hell." FML
<sp33chy> #16950938 (245) I agree, your life sucks (2618) - you deserved it (12157) - On 07/02/2011 at 4:54pm - misc - by Cowgirl_Up37 (woman) - United States (Texas) @ www.fmylife.com/miscellaneous/16950938 (entry 5) www.fmylife.com/miscellaneous?page=7
<speechles> !fml work -page 2 4
<sp33chy> Today, my boss gave me a speech about my "motivation issues". I've been working for him for 2 months, the commissions I've made for him paid off his bills, so what are my motivation issues? I turned down his offer of a date. I have a boyfriend. He keeps asking. FML
<sp33chy> #16827644 (88) I agree, your life sucks (9673) - you deserved it (612) - On 06/24/2011 at 1:11am - work - by Leah (woman) - United States @ www.fmylife.com/work/16827644 (entry 4) www.fmylife.com/work?page=2