From 23b32b900423ae8fe36a50224f0308cb3d97d4d0 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 19 Apr 2023 01:23:44 +0800 Subject: 🏷bump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/alicebot_plugin_base/config.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 plugins/alicebot_plugin_base/config.py (limited to 'plugins/alicebot_plugin_base/config.py') diff --git a/plugins/alicebot_plugin_base/config.py b/plugins/alicebot_plugin_base/config.py deleted file mode 100644 index b410888..0000000 --- a/plugins/alicebot_plugin_base/config.py +++ /dev/null @@ -1,30 +0,0 @@ -from typing import Set, Optional - -from iamai import ConfigModel - - -class BasePluginConfig(ConfigModel): - __config_name__ = "" - handle_all_message: bool = False - """是否处理所有类型的消息,此配置为 True 时会覆盖 handle_friend_message 和 handle_group_message。""" - handle_friend_message: bool = True - """是否处理好友消息。""" - handle_group_message: bool = True - """是否处理群消息。""" - accept_group: Optional[Set[int]] = None - """处理消息的群号,仅当 handle_group_message 为 True 时生效,留空表示处理所有群。""" - message_str: str = "{user_name}: {message}" - """最终发送消息的格式。""" - - -class RegexPluginConfig(BasePluginConfig): - pass - - -class CommandPluginConfig(RegexPluginConfig): - command_prefix: Set[str] = {".", "。"} - """命令前缀。""" - command: Set[str] = {} - """命令文本。""" - ignore_case: bool = True - """忽略大小写。""" -- cgit v1.2.3-70-g09d2