🐛 修复漏发消息

This commit is contained in:
KimigaiiWuyi 2023-12-16 21:26:52 +08:00
parent d95fadf020
commit 3d81376bff
2 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -671,5 +671,6 @@ gs_restart.sh
gsuid_core/plugins/* gsuid_core/plugins/*
!gsuid_core/plugins/core_command !gsuid_core/plugins/core_command
!gsuid_core/plugins/gs_test.py !gsuid_core/plugins/gs_test.py
!gsuid_core/utils/backup
logs logs
.pdm-python .pdm-python

View File

@ -228,7 +228,7 @@ class Bot:
await self.send(md) await self.send(md)
success = True success = True
if istry and not success and self.ev.bot_id in isc: if not success and istry and self.ev.bot_id in isc:
md = await markdown_to_template_markdown(md) md = await markdown_to_template_markdown(md)
fake_buttons = parse_button(_buttons) fake_buttons = parse_button(_buttons)
for custom_template_id in button_templates: for custom_template_id in button_templates:
@ -239,8 +239,8 @@ class Bot:
custom_template_id custom_template_id
) )
) )
success = True
await self.send(md) await self.send(md)
success = True
break break
if ( if (
@ -274,6 +274,11 @@ class Bot:
) )
) )
await self.send(_reply) await self.send(_reply)
success = True
if not success:
await self.send(_reply)
elif reply: elif reply:
await self.send(reply) await self.send(reply)