From 025020c503ef5b8dc0270197c5b1e6d4e0f8807d Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 18 Apr 2023 18:03:02 +0800 Subject: ✨本体文件 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/alicebot_plugin_send/config.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugins/alicebot_plugin_send/config.py (limited to 'plugins/alicebot_plugin_send/config.py') diff --git a/plugins/alicebot_plugin_send/config.py b/plugins/alicebot_plugin_send/config.py new file mode 100644 index 0000000..85f794a --- /dev/null +++ b/plugins/alicebot_plugin_send/config.py @@ -0,0 +1,15 @@ +from typing import Set, Optional + +from plugins.alicebot_plugin_base import CommandPluginConfig + + +class Config(CommandPluginConfig): + __config_name__ = "plugin_send" + command: Set[str] = {"send"} + """命令文本。""" + send_user_id: int = 0 + """发送消息的对象的 QQ 号码。""" + send_success_msg: Optional[str] = None + """发送成功时回复的消息,设置为 None 表示不发送任何消息。""" + send_filed_msg: Optional[str] = "发送失败:{message}" + """发送失败时回复的消息。""" -- cgit v1.2.3-70-g09d2