This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

adding a simple line

Old posts that have not been replied to for several years.
Locked
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

adding a simple line

Post by NewzUK »

hi

I'm trying to add a line to this proc that will make it msg the channel a separate line of text before it posts the stuff it's parsing...

Nothing I've tried has quite worked right... :-?

bind time - "00 * * * *" bbc:auto
proc bbc:auto { min hour day month year } {
foreach chan [channels] {
if {[botonchan $chan] && [string match "*+news*" [channel info $chan]]} {
bbc:parse "http://news.bbc.co.uk/2/low.html" 1 $chan $chan }
}
}

If anyone could point me in the right direction as to where to put the extra line, I'd be grateful!
thanks.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

You need something like

putserv "privmsg $chan :baa baa baa I like sheep"

and you should put it right before the bbc:parse bit.
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

hmm that dosn't work either

I tried it with { } on either side too - still no luck

how hard can it be? lol
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

it's ok - I've nutted it out!

thanks!

:)
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
Locked