From 601bf4de02b4a3fde685206d6f33a05e0d97f26b Mon Sep 17 00:00:00 2001 From: iou1name Date: Sun, 27 May 2018 20:03:00 -0400 Subject: [PATCH] changed seendb dumping rate to 1 sec --- modules/seen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/seen.py b/modules/seen.py index 245976a..2523b27 100755 --- a/modules/seen.py +++ b/modules/seen.py @@ -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()