From 614f63bda31248551b8a050c0c010b2aae3a5e6b Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 11 Sep 2018 18:24:34 +0100 Subject: Remove boot_time from stats.py, move it to start_time in IRCBot otherwise a module reload of stats.py would reset !uptime --- IRCBot.py | 1 + 1 file changed, 1 insertion(+) (limited to 'IRCBot.py') diff --git a/IRCBot.py b/IRCBot.py index 76d6e304..c9306a4a 100644 --- a/IRCBot.py +++ b/IRCBot.py @@ -5,6 +5,7 @@ import ModuleManager, Timer class Bot(object): def __init__(self): + self.start_time = time.time() self.lock = threading.Lock() self.args = None self.database = None -- cgit v1.3.1-10-gc9f91