mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Make starting the bot a little safer; we won't have to worry about trashing our registry file until around 5 minutes after the bot has started.
This commit is contained in:
parent
d6f79c4a56
commit
03ebdc3512
@ -64,7 +64,11 @@ def main():
|
||||
import world
|
||||
import drivers
|
||||
import schedule
|
||||
world.upkeep()
|
||||
# We schedule this event rather than have it actually run because if there
|
||||
# is a failure between now and the time it takes the Owner plugin to load
|
||||
# all the various plugins, our registry file might be wiped. That's bad.
|
||||
when = time.time() + conf.supybot.upkeepInterval()
|
||||
schedule.addEvent(world.upkeep, when, name='upkeep')
|
||||
world.startedAt = started
|
||||
while world.ircs:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user