🐛 修复群权限检测获取群问题并优化代码

This commit is contained in:
HibiKier
2024-08-02 21:38:32 +08:00
parent 36047693aa
commit 51fcdf649e
6 changed files with 117 additions and 89 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class ConfigGroup(BaseModel):
"""配置项列表"""
def get(self, c: str, default: Any = None) -> Any:
cfg = self.configs.get(c)
cfg = self.configs.get(c.upper())
if cfg is not None:
if cfg.value is not None:
return cfg.value