Skip to content

Commit

Permalink
🎨 format
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Aug 21, 2024
1 parent b947bb1 commit 68d269b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/nonebot_plugin_alconna/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ def __init__(
try:
global_config = get_driver().config
config = get_plugin_config(Config)
self.auto_send = config.alconna_auto_send_output if auto_send_output is None else auto_send_output
if auto_send_output is None:
self.auto_send = config.alconna_auto_send_output
elif config.alconna_auto_send_output is False:
self.auto_send = False
else:
self.auto_send = auto_send_output
if (
config.alconna_use_command_start if use_cmd_start is None else use_cmd_start
) and global_config.command_start:
Expand Down
3 changes: 1 addition & 2 deletions src/nonebot_plugin_alconna/uniseg/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,7 @@ def __init__(
self.__iadd__(Text(message), _merge=False)
elif isinstance(message, Iterable):
for i in message:
self.__iadd__(Text(i) if isinstance(i, str) else i
)
self.__iadd__(Text(i) if isinstance(i, str) else i)
elif isinstance(message, Segment):
self.__iadd__(message, _merge=False)
self.__merge_text__()
Expand Down

0 comments on commit 68d269b

Please sign in to comment.