aboutsummaryrefslogtreecommitdiff
path: root/IRCBot.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-11 18:24:34 +0100
committerGravatar jesopo2018-09-11 18:24:34 +0100
commit614f63bda31248551b8a050c0c010b2aae3a5e6b (patch)
tree2e6c3f3ab610dfc658081ef0fbc6249f521c87e8 /IRCBot.py
parentUtils.irc_lower and Utils.irc_equals take an IRCServer parameter (diff)
signature
Remove boot_time from stats.py, move it to start_time in IRCBot otherwise a
module reload of stats.py would reset !uptime
Diffstat (limited to 'IRCBot.py')
-rw-r--r--IRCBot.py1
1 files changed, 1 insertions, 0 deletions
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