移植nb2 localstore插件,实现夸赞名单

This commit is contained in:
2024-10-24 23:52:09 +08:00
parent 70b1a96ad3
commit b09671093d
7 changed files with 343 additions and 74 deletions

View File

@ -54,6 +54,6 @@ class Config:
if name in self.config_items:
value = os.getenv(name.upper())
return self._convert_string(value) if value is not None else self.config_items[name]
raise AttributeError(f"'Config' object has no attribute '{name}'")
else:
return None