🔭 加入用户群 10s 后自动删除原消息
This commit is contained in:
parent
11d55a5eee
commit
ee49ac3e37
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user