🔭 加入用户群 10s 后自动删除原消息

This commit is contained in:
xtaodada 2020-04-05 12:00:28 +08:00
parent 11d55a5eee
commit ee49ac3e37
No known key found for this signature in database
GPG Key ID: 39EFACA711DF5D8C

View File

@ -4,6 +4,7 @@ from platform import node
from getpass import getuser from getpass import getuser
from os import geteuid from os import geteuid
from requests import head from requests import head
from asyncio import sleep
from requests.exceptions import MissingSchema, InvalidURL, ConnectionError from requests.exceptions import MissingSchema, InvalidURL, ConnectionError
from pagermaid import log, bot from pagermaid import log, bot
from pagermaid.listener import listener from pagermaid.listener import listener
@ -145,7 +146,9 @@ async def contact_chat(context):
'PagerMaid_Modify', 'PagerMaid_Modify',
message message
) )
await context.edit('您已成功加入 [Pagermaid-Modify](https://github.com/xtaodada/PagerMaid-Modify/) 用户群。') notification = await context.edit('您已成功加入 [Pagermaid-Modify](https://github.com/xtaodada/PagerMaid-Modify/) 用户群。')
await sleep(.10)
await notification.delete()
def url_tracer(url): def url_tracer(url):