changed seendb dumping rate to 1 sec

This commit is contained in:
iou1name 2018-05-27 20:03:00 -04:00
parent 0f65440fd5
commit 601bf4de02

View File

@ -126,7 +126,7 @@ def seen_hook(bot, trigger):
seen = first + last
bot.memory["seen"][trigger.nick] = seen
if time.time() - bot.memory["seen_last_dump"] > 60:
if time.time() - bot.memory["seen_last_dump"] > 1:
# only dump once a minute at most
dump_seen_db(bot)
bot.memory["seen_last_dump"] = time.time()