egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stopping old headlines

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
NewzNZ
Halfop


Joined: 05 Mar 2009
Posts: 60

PostPosted: Fri Mar 05, 2010 2:13 am    Post subject: stopping old headlines Reply with quote

Hi there

I have a series of scripts to pull headlines off various sites. To avoid repeating the previous item, each time the bot goes to send a story to the room it checks to see if it was the last story by:

if {($news != $newslast)} {

send to room and set $newslast etc

The problem I'm having with some sites is that if you check them eg every minute, sometimes the freshest story reverts back to the second story for a couple of minutes before coming back again - must be some kind of caching problem on the website.
This kind of thing results:

STORY NEW
STORY 2ND NEWEST
STORY NEW...then it settles out.

Anyway what I'm trying to work out is another check way to avoid sending these previously sent items out again to the room when they've already hit.

Thanks in advance for help!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber