Revert "Revert "Revert "meizi bug fixes, added diss"""

This reverts commit 119915b590.
This commit is contained in:
TNTcraftHIM 2020-08-24 15:43:43 +08:00
parent 119915b590
commit 946a5eb5e0
3 changed files with 3 additions and 37 deletions

24
diss.py
View File

@ -1,24 +0,0 @@
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 服务器 。")

View File

@ -232,23 +232,13 @@
},
{
"name": "acg-multi",
"version": "1.2",
"version": "1.1",
"section": "profile",
"maintainer": "TNTcraftHIM",
"size": "2.4 kb",
"supported": true,
"des-short": "多网站随机获取ACG图",
"des": "从几个不同的图库中随机获取二刺螈bushiACG图片基本都是手机尺寸的图。命令acgm。"
},
{
"name": "diss",
"version": "1.0",
"section": "chat",
"maintainer": "TNTcraftHIM",
"size": "1.0 kb",
"supported": true,
"des-short": "祖安对线语录",
"des": "让你在祖安大舞台能够时而儒雅时而火力全开的对线。命令dissbiss。"
}
]
}

View File

@ -1,4 +1,4 @@
import random
from random import randint
from time import sleep
from requests import get
from pagermaid.listener import listener
@ -11,7 +11,7 @@ async def meizi(context):
await context.edit("获取中 . . .")
status = False
for _ in range (20): #最多重试20次
website = random.randint(0, 13)
website = randint(0, 13)
if website == 0:
img = get("https://mm.52.mk")
elif website == 1: