mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-01 17:49:58 +08:00
FIX BUG
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
from nonebot.adapters.onebot.v11 import Event, MessageEvent
|
||||
|
||||
from configs.config import Config
|
||||
|
||||
|
||||
def rule(event: Event) -> bool:
|
||||
return Config.get_config("chat_history", "FLAG") and isinstance(event, MessageEvent)
|
||||
return bool(
|
||||
Config.get_config("chat_history", "FLAG") and isinstance(event, MessageEvent)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user