fuckmessage 修复没有部分消息检查失败的问题

This commit is contained in:
xtaodada 2021-07-28 20:47:21 +08:00
parent cb5714addd
commit fbe23feb4b
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 5 additions and 4 deletions

View File

@ -19,9 +19,10 @@ async def fuck_message(context):
async for message in context.client.iter_messages(context.chat_id): async for message in context.client.iter_messages(context.chat_id):
if count_buffer == 200: if count_buffer == 200:
break break
if context.arguments in message.text: if message.text:
messages.append(message) if context.arguments in message.text:
count += 1 messages.append(message)
count += 1
if len(messages) > 50: if len(messages) > 50:
try: try:
await context.client.delete_messages(input_chat, messages) await context.client.delete_messages(input_chat, messages)

View File

@ -652,7 +652,7 @@
}, },
{ {
"name": "fuckmessage", "name": "fuckmessage",
"version": "1.0", "version": "1.01",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "1.3 kb", "size": "1.3 kb",