File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/nonebot_plugin_alconna Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ALCONNA_AUTO_SEND_OUTPUT=true
55ALCONNA_USE_COMMAND_START = true
66ALCONNA_GLOBAL_COMPLETION = '
77{
8- "tab": "true "
8+ "tab": "True "
99}
1010'
1111NBP_ALC_PAGE_SIZE = 6
Original file line number Diff line number Diff line change 77from tarina import lang , init_spec
88from nonebot .matcher import Matcher
99from nonebot .utils import escape_tag
10+ from pydantic import ValidationError
1011from nonebot .adapters import Bot , Event
1112from nonebot .plugin .on import on_message
1213from nonebot .internal .rule import Rule as Rule
@@ -123,8 +124,12 @@ def __init__(
123124 with command_manager .update (command ):
124125 command .meta .context_style = config .alconna_context_style
125126 self .use_origin = config .alconna_use_origin if use_origin is None else use_origin
127+ except ValidationError :
128+ raise
126129 except ValueError :
127130 self .auto_send = True if auto_send_output is None else auto_send_output
131+ self .response_self = False if response_self is None else response_self
132+ self .use_origin = False if use_origin is None else use_origin
128133
129134 def _update (cmd_id : int ):
130135 try :
You can’t perform that action at this time.
0 commit comments