News:

**VIP donor members can set up a profile gallery, only viewable by those on their buddy list ****

Main Menu

lost connection after inactivity

Started by amarganth, February 25, 2005, 07:06:09 PM

Previous topic - Next topic

amarganth

hi all

may be someone has a hint for me?

the new TourneyStatsBot get a disconnect after half an hour (?) of inactivity. That's normal, if it's a player. but for a bot, who must be active 7x24 hours, i must do something against that.

i tried to send all 15 minutes a "time" command to fibs, but that doesn't work.

how is it realized in other bots? repbot, for example?

thanks in advance for every hint.

amarganth
To be is to do
          Sokrates
To do is to be
          Sartre
Do be do be do
          Sinatra

MadMatt

Why wouldn't that work? It's how TourneyBot does it.

TourneyBot's internal scheduler is responsible for sending the time command every 10 minutes (at least I think it's 10). The Scheduler is an object that can execute any given Task after a specified delay. For implementation details, see scheduler.rb in TourneyBot code.

Here is a direct link to it.
MadMatt
----------

TourneyBot Website

amarganth

Hi MadMatt

I see, you do the same thing.

May be it's the difference: you do it every 10 minutes, i do it every 15 minutes.

I will change it to 10 minutes. I hope it will work correctly then.  :(

Thanks!  :rolleyes:

To be is to do
          Sokrates
To do is to be
          Sartre
Do be do be do
          Sinatra