mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-30 01:00:02 +08:00
10 lines
238 B
Python
10 lines
238 B
Python
from nonebot.adapters.onebot.v11 import Event, MessageEvent
|
|
|
|
from configs.config import Config
|
|
|
|
|
|
def rule(event: Event) -> bool:
|
|
return bool(
|
|
Config.get_config("chat_history", "FLAG") and isinstance(event, MessageEvent)
|
|
)
|