mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 13:34:08 +00:00
🎉 添加了diss对线插件与meizi的bug修复 (#19)
This commit is contained in:
parent
756b9a1131
commit
14147a1854
24
diss.py
Normal file
24
diss.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
from requests import get
|
||||||
|
from pagermaid.listener import listener
|
||||||
|
|
||||||
|
@listener(is_plugin=True, outgoing=True, command="diss",
|
||||||
|
description="儒雅随和版祖安语录。")
|
||||||
|
async def diss(context):
|
||||||
|
await context.edit("获取中 . . .")
|
||||||
|
req = get("https://nmsl.shadiao.app/api.php?level=min&from=tnt")
|
||||||
|
if req.status_code == 200:
|
||||||
|
res = req.text
|
||||||
|
await context.edit(res, parse_mode='html', link_preview=False)
|
||||||
|
else:
|
||||||
|
await context.edit("出错了呜呜呜 ~ 无法访问到 API 服务器 。")
|
||||||
|
|
||||||
|
@listener(is_plugin=True, outgoing=True, command="biss",
|
||||||
|
description="加带力度版祖安语录。")
|
||||||
|
async def biss(context):
|
||||||
|
await context.edit("获取中 . . .")
|
||||||
|
req = get("https://nmsl.shadiao.app/api.php?&from=tnt")
|
||||||
|
if req.status_code == 200:
|
||||||
|
res = req.text
|
||||||
|
await context.edit(res, parse_mode='html', link_preview=False)
|
||||||
|
else:
|
||||||
|
await context.edit("出错了呜呜呜 ~ 无法访问到 API 服务器 。")
|
12
list.json
12
list.json
@ -222,7 +222,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "meizi",
|
"name": "meizi",
|
||||||
"version": "1.1",
|
"version": "1.2",
|
||||||
"section": "profile",
|
"section": "profile",
|
||||||
"maintainer": "TNTcraftHIM",
|
"maintainer": "TNTcraftHIM",
|
||||||
"size": "2.6 kb",
|
"size": "2.6 kb",
|
||||||
@ -249,6 +249,16 @@
|
|||||||
"supported": true,
|
"supported": true,
|
||||||
"des-short": "删除所有信息",
|
"des-short": "删除所有信息",
|
||||||
"des": "删除所有信息(非群组管理员只删除自己的消息),需要二次确定(-da true)。命令:da"
|
"des": "删除所有信息(非群组管理员只删除自己的消息),需要二次确定(-da true)。命令:da"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "diss",
|
||||||
|
"version": "1.0",
|
||||||
|
"section": "chat",
|
||||||
|
"maintainer": "TNTcraftHIM",
|
||||||
|
"size": "1.0 kb",
|
||||||
|
"supported": true,
|
||||||
|
"des-short": "祖安对线语录",
|
||||||
|
"des": "让你在祖安大舞台能够时而儒雅,时而火力全开的对线。命令:diss,biss。"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
4
meizi.py
4
meizi.py
@ -1,4 +1,4 @@
|
|||||||
from random import randint
|
import random
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from requests import get
|
from requests import get
|
||||||
from pagermaid.listener import listener
|
from pagermaid.listener import listener
|
||||||
@ -11,7 +11,7 @@ async def meizi(context):
|
|||||||
await context.edit("获取中 . . .")
|
await context.edit("获取中 . . .")
|
||||||
status = False
|
status = False
|
||||||
for _ in range (20): #最多重试20次
|
for _ in range (20): #最多重试20次
|
||||||
website = randint(0, 13)
|
website = random.randint(0, 13)
|
||||||
if website == 0:
|
if website == 0:
|
||||||
img = get("https://mm.52.mk")
|
img = get("https://mm.52.mk")
|
||||||
elif website == 1:
|
elif website == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user