尝试修复无log的bug

This commit is contained in:
Pentacene 2021-03-31 01:34:57 +08:00 committed by GitHub
parent a03b51383f
commit 467e049d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,9 +180,6 @@ async def process_message(context):
reply_to=context.id) reply_to=context.id)
await sleep(_time) await sleep(_time)
await sticker.delete() await sticker.delete()
if context.chat_id < 0: await log(f'#被回复\n在 [{context.chat.title}]({process_link(context.chat_id, context.id)})\n获得了 {get_name(context.sender)} 的回复')
await log(
f'#被回复\n在 [{context.chat.title}]({process_link(context.chat_id, context.id)})\n'
f'获得了 {get_name(context.sender)} 的回复')
except: except:
pass pass