mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 06:10:01 +08:00
🐛 修复群权限检测获取群问题并优化代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user