Archived
1
0
Fork 0

remove ab auto revoke

This commit is contained in:
yzhh 2021-06-05 13:19:01 +08:00
parent cbbfa608d9
commit a991e0a05a
2 changed files with 2 additions and 4 deletions

View file

@ -32,8 +32,6 @@ async def ab_loader(kwargs: dict):
id = kwargs[Friend].id id = kwargs[Friend].id
msg = await ab(table, id) msg = await ab(table, id)
send = await sendMessage(kwargs, msg) send = await sendMessage(kwargs, msg)
await asyncio.sleep(60)
await revokeMessage(send)
async def newbie_loader(kwargs: dict): async def newbie_loader(kwargs: dict):

View file

@ -26,8 +26,8 @@ async def ab(table, id):
'filter'] + '\n处理结果:' + x['result']) 'filter'] + '\n处理结果:' + x['result'])
y = await check('\n'.join(d)) y = await check('\n'.join(d))
if y.find('<吃掉了>') != -1 or y.find('<全部吃掉了>') != -1: if y.find('<吃掉了>') != -1 or y.find('<全部吃掉了>') != -1:
return f'{pageurl}\n{y}\n...仅显示前5条内容\n检测到外来信息介入,请前往滥用日志查看所有消息。Special:滥用日志\n[一分钟后撤回本消息]' return f'{pageurl}\n{y}\n...仅显示前5条内容\n检测到外来信息介入,请前往滥用日志查看所有消息。'
else: else:
return f'{pageurl}\n{y}\n...仅显示前5条内容\n[一分钟后撤回本消息]' return f'{pageurl}\n{y}\n...仅显示前5条内容'
else: else:
return '未设定起始Wiki。' return '未设定起始Wiki。'