mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-11 22:45:48 +08:00
🐛 修复漏发消息
This commit is contained in:
parent
d95fadf020
commit
3d81376bff
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user