mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +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)
|
|
)
|