changed seendb dumping rate to 1 sec
This commit is contained in:
parent
0f65440fd5
commit
601bf4de02
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user