Aff插件增加链接预览功能 (#59)

Co-authored-by: TNTcraftHIM <TNTcraftHIM@users.noreply.github.com>
This commit is contained in:
AAA 2020-09-09 19:18:31 +08:00 committed by GitHub
parent 529fc0371d
commit 1645d4094e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
aff.py
View File

@ -18,7 +18,7 @@ async def aff(context):
await context.edit("出错了呜呜呜 ~ Aff消息不存在。\n(你有提前保存好嘛?)")
return
try:
await context.edit(msg)
await context.edit(msg, link_preview=True)
except:
await context.edit("出错了呜呜呜 ~ 信息无变化。")
sleep(3)

View File

@ -312,7 +312,7 @@
},
{
"name": "aff",
"version": "1.0",
"version": "1.1",
"section": "chat",
"maintainer": "TNTcraftHIM",
"size": "2.0 kb",