@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> qik regsub to remove blank lines from text?
<1> ScoTTie still here?
<2> whawha?
<1> ?
<1> sup yoe?
<2> someone hilighted me earlier.. =P
<0> friday nights in suk
<3> yep
<4> how can i get the bot to reply in the channel that i type the command in? for example i type !help in #test1 it replies in #test1 and if i type !help in #test2 it replies in #test2
<5> easy
<5> bind pub - !test testproc
<5> proc testproc {nick uhost hand chan arg} {putserv "PRIVMSG $chan :test!"}
<6> how do I make a bot output a message at a certain time of the day?
<6> I want to output some stock quotes at market close
<7> anyone know how to make an eggdrop dcc chat someone



<7> not a partyline thing
<7> like a regular dcc chat
<8> hello
<8> when i put putquick "PRIVMSG $chan :TESTING"
<8> it gives me
<8> Tcl error: wrong # args: should be "putquick text ?options?"
<8> why?
<8> anyone there?
<9> hello
<9> ;scan "hi@test.com" (%\[^@\]@%\[^)\] t1 t2
<10> sdfd: #794 (182 clicks) Tcl: 0
<9> .puts $t1
<9> .puts $t2
<9> ;puts $t1
<10> sdfd: #797 (247 clicks) Tcl error: can't read "t1": no such variable
<11> Anyone got any URLS to help me write a decent regular expression?
<11> in tcl of course
<3> void^
<3> no
<3> what regexp you nered
<3> *need
<11> at the moment, it matches one word, but i need it to match a selection of words
<11> lemme copy line
<11> 2 secs
<3> k
<11> regexp -all -inline -nocase -- {goal: (.*?)\n} $body]
<11> atm, it matches on "goal: "
<12> haha... you are still at it
<11> lol
<11> it works now chilla
<11> but
<11> the page its parsing has like 10 divisions
<11> i only want one
<11> :-/
<12> you mean you just want till end of line?
<3> and you need it to match what?
<3> chilla, is there anyway to speed up the http package?
<11> tis easier if i show you the url
<11> regexp -all -inline -nocase -- {goal: (.*?)\n} $body] { if {$i == "5"} { break }; puthelp "PRIVMSG $channel5 :[regsub -all -- {<.+?>} $goal {}]"
<11> feck
<11> http://news.bbc.co.uk/sport1/hi/football/live_videprinter/default.stm
<11> that the url
<11> PREM: HT Middlesbrough 0-2 Aston Villa
<11> probably the "PREM: "
<12> are you parsing the source of the page or the actual rendered text?
<11> http://paste.anbcs.com/3944
<3> (goal:|prem:) instead of goal:
<11> cool
<11> i had been trying along these lines:
<11> {goal: (.*?)\n|prem: (.*?)\n}
<3> match-text goal:/prem: rest-of-text
<3> is what you'll get in the returning regexp
<11> thanks [GRiMMY]
<11> will give it a go
<12> does $body contain html source or the rendered page?
<12> not familiar with egghttp
<11> me neither
<11> i just followed a tutorial someplace
<11> and with help from here got it working
<12> ok, your objective is to get all goal and prem lines, correct?



<3> hehe mine will do it, if it works for goal: now
<3> relax chilla
<3> help me
<3> can i speed up the http package?
<12> how would i know... i didn't write it
<3> lol
<3> but your imdb used it
<12> ...
<11> chilla
<11> kinda
<11> the idea is to get prem goals
<12> ...
<11> im fiddling with syntax to find the best way of weeding out the 10 or so lines of them all
<12> huh what... so you want PREM only?
<11> bear with me
<11> i want the goal: syntax matched
<11> but for teams in the PREM only
<11> and as when goals are scored, they arent distinguished by anything
<11> no mention of PREM etc
<11> prem = premiership
<12> ok, so for ever PREM line that appears, you want to match GOAL lines containing those teams, right?
<11> yes
<11> in a roundabout way
<12> lol
<11> maybe even easier
<11> would it be possible to list say 20 teams in an array
<11> and have the regexp match text from there?
<12> forget arrays
<12> tcl way of thinking is lists
<11> so the syntax id need to match would be:
<11> goal: $teamname
<12> let me think about it for a few
<11> where teamname somehow lists 20 teams
<11> ty
<12> are there lines on that page where a GOAL corresponds to a PREM?
<12> it's difficult to eyeball it
<11> nope
<11> goal is always independent of division
<12> no what i mean is
<12> is there a GOAL on that page
<12> where the teams match a PREM line from before
<11> ahh
<12> that is what you are looking for, right?
<12> i'm trying to eyeball it, but it's kinda difficult
<11> kinda
<11> sometimes goals appear, without the prem line
<11> you only get the prem line at half or full time
<12> so if PREM line didn't appear, you wouldn't want to be matching the goal lines?
<11> maybe i couldve explained it better...apologies
<11> here we go
<11> atm, the script just loops throug the page, and finds the first 5 "goal: " matches
<11> as the page has lots of scores i dont want, i need to also weed out the scores i want
<11> i know which 20 teams im looking for, but they dont appear on the page, until a goal is scred
<12> you have predefined list of 20 teams?
<11> yes
<11> but i dont know how to use it
<11> i thought about the PREM: phrase but then realised it wouldnt work
<11> so scrap that
<12> ok, so let's clear this up:
<12> you have a list of 20 teams
<12> whenever a goal is scored by one of the 20 teams
<12> you want it to be displayed
<11> yes
<12> correct?
<11> thats 100% correct
<12> doesn't matter who they scored it against cause they are all in the same league
<12> correct?
<11> yes
<12> gimme a few
<11> thats why i thought to match on
<11> goal: $teamname
<7> anyone know how to make an eggdrop dcc chat someone, not like a partyline thing
<13> #egghelp
<14> hello


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #eggtcl
or
Go to some related logs:

#nhl
jenferlopez
#sql
#worldcup
darkstar-passes
heave.hu
#beginner
#heroin
lpr connection refused fedora core 5
#directx



Home  |  disclaimer  |  contact  |  submit quotes