mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
fix withdraw
This commit is contained in:
parent
264a827a2c
commit
fc2487df0e
@ -9,7 +9,7 @@ withdraw_msg = on_command('撤回', priority=5, block=True)
|
||||
|
||||
@withdraw_msg.handle()
|
||||
async def _(bot: Bot, event: GroupMessageEvent, state: T_State):
|
||||
r = re.search(r'\[CQ:reply,id=(\d*)]', event.raw_message)
|
||||
r = re.search(r'\[CQ:reply,id=(-?\d*)]', event.raw_message)
|
||||
if r:
|
||||
await bot.delete_msg(message_id=int(r.group(1)), self_id=int(bot.self_id))
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
"plugins/coser/__init__.py",
|
||||
"plugins/draw_card/announcement.py",
|
||||
"plugins/fudu.py",
|
||||
"plugins/genshin/query_resource_points/__init__.py",
|
||||
"plugins/genshin/query_resource_points",
|
||||
"plugins/group_handle/__init__.py",
|
||||
"plugins/group_manager/__init__.py",
|
||||
"plugins/help/config.py",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user