fix uptime (moved to runtime config)

This commit is contained in:
Thorsten S
2015-12-21 00:12:10 +01:00
parent b727a631f3
commit 8368589950
3 changed files with 3 additions and 3 deletions

View File

@@ -95,6 +95,8 @@ def start(botclass, active=False):
bot.register_plugin('xep_0045')
bot.process()
config.runtimeconf_set('start_time', -time.time())
while 1:
try:
# print("hangup: %s" % got_hangup)

View File

@@ -11,9 +11,6 @@ bot_owner = string
hist_max_count = integer(default=5)
hist_max_time = integer(default=10*60)
# statistics
uptime = integer(default=0)
persistent_storage = string(default='urlbot.persistent')
persistent_locked = boolean(default=false)

View File

@@ -1,5 +1,6 @@
other_bots = string_list(default=list())
request_counter = integer(default=0)
start_time = integer(default=0)
[plugins]
[[info]]