mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-01 09:39:59 +08:00
update 0.0.6.2
This commit is contained in:
Regular → Executable
+7
@@ -14,6 +14,13 @@ class Plugins2settingsManager(StaticData):
|
||||
def __init__(self, file: Path):
|
||||
self.file = file
|
||||
super().__init__(None)
|
||||
if file.exists():
|
||||
with open(file, "r", encoding="utf8") as f:
|
||||
self._data = yaml.load(f)
|
||||
if "PluginSettings" in self._data.keys():
|
||||
self._data = (
|
||||
self._data["PluginSettings"] if self._data["PluginSettings"] else {}
|
||||
)
|
||||
|
||||
def add_plugin_settings(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user