调整配置文件结构,使不同插件可以将结果发送至不同telegram bot上
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
from util.singleton import singleton
|
||||
|
||||
@singleton
|
||||
class GlobalConfig:
|
||||
def __init__(self):
|
||||
""" 初始化 """
|
||||
@@ -23,3 +26,6 @@ class GlobalConfig:
|
||||
return global_dict[name]
|
||||
except:
|
||||
return defaultvalue
|
||||
|
||||
def get_globalconfig_key(self):
|
||||
return global_dict.keys()
|
||||
Reference in New Issue
Block a user