fix withdraw

This commit is contained in:
HibiKier
2021-09-10 20:08:01 +08:00
parent 264a827a2c
commit fc2487df0e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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))