mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
fix uptime (moved to runtime config)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
other_bots = string_list(default=list())
|
||||
request_counter = integer(default=0)
|
||||
start_time = integer(default=0)
|
||||
|
||||
[plugins]
|
||||
[[info]]
|
||||
|
||||
Reference in New Issue
Block a user