分离 des 适配 web console

This commit is contained in:
xtaodada 2023-02-01 22:29:17 +08:00
parent e5782dca81
commit 5ac6b813e9
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
99 changed files with 188 additions and 17 deletions

11
1A2B/DES.md Normal file
View File

@ -0,0 +1,11 @@
Play a game of 1A2B, command:,1a2b
# 例如
,1a2b start
,1a2b 1234
,1a2b 5678
...

1
abstract/DES.md Normal file
View File

@ -0,0 +1 @@
能够将你的语句变得抽象起来~

1
aff/DES.md Normal file
View File

@ -0,0 +1 @@
aff 快速发送 aff

1
aireply/DES.md Normal file
View File

@ -0,0 +1 @@
aireply 通过预设根据语义分析进行应答,支持设置白名单并全局开关

1
alicloud/DES.md Normal file
View File

@ -0,0 +1 @@
alicloud 查询阿里云盘不定期掉落福利

1
annualreport/DES.md Normal file
View File

@ -0,0 +1 @@
annualreport TG年度报告

2
atadmins/DES.md Normal file
View File

@ -0,0 +1,2 @@
一键 AT 本群管理员。
指令:,atadmins

1
audio_to_voice/DES.md Normal file
View File

@ -0,0 +1 @@
audio_to_voice 将音乐文件转换为语音发送

1
autochangename/DES.md Normal file
View File

@ -0,0 +1 @@
每 30 秒自动更新 last_name 为时间等小玩意。

1
autodel/DES.md Normal file
View File

@ -0,0 +1 @@
autodel 定时删除消息

2
base64/DES.md Normal file
View File

@ -0,0 +1,2 @@
Base64编码/解码。
命令:,b64e ,b64d

1
bc/DES.md Normal file
View File

@ -0,0 +1 @@
命令bc 数量 货币1 货币2

1
bin/DES.md Normal file
View File

@ -0,0 +1 @@
使用binlist api查询1分钟限额10次否则报错。使用方法,bin xxx xxx为信用卡卡号前4-8位推荐6位

2
bingwall/DES.md Normal file
View File

@ -0,0 +1,2 @@
获取 Bing 每日壁纸。
指令:,bingwall

3
calculator/DES.md Normal file
View File

@ -0,0 +1,3 @@
支持基本运算(加减乘除乘方开方)及进制转换。
命令:,cal [表达式] ,con [进制] [数字]
例如:`,cal 1+2` `,con 16 10`

2
chat_transfer/DES.md Normal file
View File

@ -0,0 +1,2 @@
导出、导入已加入的群组/频道(仅可导入公开群组/频道)
指令:,chat_transfer

1
clean_member/DES.md Normal file
View File

@ -0,0 +1 @@
clean_member 多种方式清理群成员

1
clear_blocked/DES.md Normal file
View File

@ -0,0 +1 @@
clear_blocked 清理所有已拉黑用户

View File

@ -0,0 +1 @@
clear_private_chat 通过指定关键词清除私聊

1
code/DES.md Normal file
View File

@ -0,0 +1 @@
code 在线运行代码插件,支持输入

1
copy_sticker_set/DES.md Normal file
View File

@ -0,0 +1 @@
copy_sticker_set 复制整个贴纸包

1
covid/DES.md Normal file
View File

@ -0,0 +1 @@
covid 获取新冠疫情信息

1
crazy4/DES.md Normal file
View File

@ -0,0 +1 @@
crazy4 天天疯狂随机输出KFC疯狂星期四文案

1
da/DES.md Normal file
View File

@ -0,0 +1 @@
da 删除群内所有消息(非群组管理员只删除自己的消息)

1
dc/DES.md Normal file
View File

@ -0,0 +1 @@
列出本群dc分布/查看某个人所在的dc服务器(指令: ,dc)

1
dictionary/DES.md Normal file
View File

@ -0,0 +1 @@
dictionary 查询英语单词的意思

1
diss/DES.md Normal file
View File

@ -0,0 +1 @@
儒雅随和版祖安语录。

2
dme/DES.md Normal file
View File

@ -0,0 +1,2 @@
删除当前对话您发送的特定数量的消息。
指令:,dme

1
eat/DES.md Normal file
View File

@ -0,0 +1 @@
这个人很懒,什么都没有留下。

2
epic/DES.md Normal file
View File

@ -0,0 +1,2 @@
获取 Epic 喜加一限免。
指令:,epic

1
everyday_en/DES.md Normal file
View File

@ -0,0 +1 @@
支持群订阅

2
everyday_greet/DES.md Normal file
View File

@ -0,0 +1,2 @@
每日问候。
指令:,everyday_greet

1
fadian/DES.md Normal file
View File

@ -0,0 +1 @@
fadian 促进群员感情的有趣插件&情话生成

1
get_status/DES.md Normal file
View File

@ -0,0 +1 @@
get_status 获取自己或者他人的大会员自定义 emoji 状态

2
getdel/DES.md Normal file
View File

@ -0,0 +1,2 @@
获取当前群组的死号数。
指令:,getdel

1
getstickers/DES.md Normal file
View File

@ -0,0 +1 @@
getstickers 获取整个贴纸包的贴纸

1
gfw/DES.md Normal file
View File

@ -0,0 +1 @@
gfw 查询ip或域名是否被墙

1
google/DES.md Normal file
View File

@ -0,0 +1 @@
google 谷歌搜索

1
his/DES.md Normal file
View File

@ -0,0 +1 @@
his 群成员历史消息记录查询

2
hitokoto/DES.md Normal file
View File

@ -0,0 +1,2 @@
一言。
指令:,hitokoto

7
httpcat/DES.md Normal file
View File

@ -0,0 +1,7 @@
httpcat 获取 http 状态码图片
### 100
,httpcat 100
![](https://http.cat/100)

1
icp/DES.md Normal file
View File

@ -0,0 +1 @@
icp 查询域名是否已备案

1
ip/DES.md Normal file
View File

@ -0,0 +1 @@
ip 查询 ip 归属地

1
jikipedia/DES.md Normal file
View File

@ -0,0 +1 @@
jikipedia 小鸡词典,梗查询

2
keyword/DES.md Normal file
View File

@ -0,0 +1,2 @@
关键词回复。
指令:,keyword

View File

@ -132,7 +132,7 @@
},
{
"name": "weather",
"version": "1.1320000000000001",
"version": "1.133",
"section": "daily",
"maintainer": "xtaodada",
"size": "3.1 kb",
@ -222,7 +222,7 @@
},
{
"name": "sticker",
"version": "0.11999999999999998",
"version": "0.12",
"section": "chat",
"maintainer": "xtaodada",
"size": "4.94 kb",
@ -232,7 +232,7 @@
},
{
"name": "yvlu",
"version": "1.2611",
"version": "1.27",
"section": "chat",
"maintainer": "xtaodada, xiluo",
"size": "10.0 kb",
@ -458,7 +458,7 @@
"size": "2.49 kb",
"supported": true,
"des-short": "Play a game of 1A2B",
"des": "Play a game of 1A2B, command:,1a2b"
"des": "Play a game of 1A2B, command:,1a2b\n\n# 例如\n\n,1a2b start\n\n,1a2b 1234\n\n,1a2b 5678\n\n..."
},
{
"name": "listusernames",
@ -674,7 +674,7 @@
"name": "icp",
"version": "1.01",
"section": "chat",
"maintainer": "sourcery-ai[bot]",
"maintainer": "Ricky8955555",
"size": "3.258 kb",
"supported": true,
"des-short": "icp 查询域名是否已备案",
@ -728,7 +728,7 @@
"size": "0.927 kb",
"supported": true,
"des-short": "httpcat 获取 http 状态码图片",
"des": "httpcat 获取 http 状态码图片"
"des": "httpcat 获取 http 状态码图片\n\n### 100\n\n,httpcat 100\n\n![](https://http.cat/100)"
},
{
"name": "set_status",
@ -904,7 +904,7 @@
"name": "yinglish",
"version": "1.0",
"section": "chat",
"maintainer": "sourcery-ai[bot]",
"maintainer": "yidaozhanyaqwq",
"size": "1.368 kb",
"supported": true,
"des-short": "yinglish 能把中文和英文翻译成淫语的翻译机!",

1
listusernames/DES.md Normal file
View File

@ -0,0 +1 @@
列出所有属于自己的公开群组/频道。命令:,listusernames

2
lottery/DES.md Normal file
View File

@ -0,0 +1,2 @@
举行单群抽奖活动。
指令:,lottery

1
luxiaoxunbs/DES.md Normal file
View File

@ -0,0 +1 @@
luxiaoxunbs 鲁小迅整点报时

1
moyu/DES.md Normal file
View File

@ -0,0 +1 @@
支持群订阅

2
netease/DES.md Normal file
View File

@ -0,0 +1,2 @@
网易云音乐。
指令:,netease

2
netease_comment/DES.md Normal file
View File

@ -0,0 +1,2 @@
随机一条网易云音乐评论。
指令:,netease_comment

2
news/DES.md Normal file
View File

@ -0,0 +1,2 @@
每日新闻、历史上的今天、天天成语、慧语香风、诗歌天地。
指令:,news

1
news60s/DES.md Normal file
View File

@ -0,0 +1 @@
news60s 60s 看世界新闻

1
no_mentions/DES.md Normal file
View File

@ -0,0 +1 @@
no_mentions 自动消除某个对话的 @ 提醒

1
no_reactions/DES.md Normal file
View File

@ -0,0 +1 @@
no_reactions 自动已读某个对话的消息表情表态

3
openaichat/DES.md Normal file
View File

@ -0,0 +1,3 @@
openaichat 使用 OpenAI Chat 聊天
基于 text-davinci-003 模型,与 ChatGPT 的效果有些许不同
代码参考了原先的 ChatGPT 插件

1
paolu/DES.md Normal file
View File

@ -0,0 +1 @@
paolu ⚠一键跑路 删除群内消息并禁言⚠

1
pfp/DES.md Normal file
View File

@ -0,0 +1 @@
pfp 快速设置头像

1
pic_to_sticker/DES.md Normal file
View File

@ -0,0 +1 @@
pic_to_sticker 将你回复的图片转换为贴纸

1
pixiv/DES.md Normal file
View File

@ -0,0 +1 @@
提供 Pixiv 相关服务

1
pmcaptcha/DES.md Normal file
View File

@ -0,0 +1 @@
私聊人机验证,助您远离广告烦恼

2
portball/DES.md Normal file
View File

@ -0,0 +1,2 @@
回复你要临时禁言的人的消息来实现XX秒的禁言。
指令:,portball [理由]|<时间/>

1
premium/DES.md Normal file
View File

@ -0,0 +1 @@
列出本群premium用户数量(指令: ,premium)

View File

@ -0,0 +1 @@
print_official_notifications 将收到的官方私聊打印到控制台

1
pypi/DES.md Normal file
View File

@ -0,0 +1 @@
pypi Search PyPI packages

1
qr/DES.md Normal file
View File

@ -0,0 +1 @@
qr 二维码相关操作

1
rate/DES.md Normal file
View File

@ -0,0 +1 @@
rate 货币汇率查询

1
resou/DES.md Normal file
View File

@ -0,0 +1 @@
命令wbrszhrsdyrs。

2
sb/DES.md Normal file
View File

@ -0,0 +1,2 @@
在自己拥有管理员权限的共同群组中封禁一位用户。
指令:,sb

2
sendat/DES.md Normal file
View File

@ -0,0 +1,2 @@
定时发送消息。
指令:,sendat

2
session/DES.md Normal file
View File

@ -0,0 +1,2 @@
注销/查询已登录的会话。
指令:,session

1
set_status/DES.md Normal file
View File

@ -0,0 +1 @@
set_status 快速设置大会员自定义 emoji 状态

3
shift/DES.md Normal file
View File

@ -0,0 +1,3 @@
自动转发频道新消息或者从零开始备份频道。
指令:,shift
查看帮助:,help shift

1
silly_girl/DES.md Normal file
View File

@ -0,0 +1 @@
傻妞插件用户可以通过此插件召唤傻妞Repohttps://github.com/cdle/sillyGirl

2
speed_test/DES.md Normal file
View File

@ -0,0 +1,2 @@
测速。
指令:,speedtest

1
sticker/DES.md Normal file
View File

@ -0,0 +1 @@
Sticker Tools

1
sticker_to_pic/DES.md Normal file
View File

@ -0,0 +1 @@
sticker_to_pic 将你回复的静态贴纸转换为图片

2
sticker_transfer/DES.md Normal file
View File

@ -0,0 +1,2 @@
贴纸迁移。
指令:,sticker_transfer

1
tel/DES.md Normal file
View File

@ -0,0 +1 @@
查询电话号码归属地号码段卡类型运营商及通信标准。命令tel。

1
teletype/DES.md Normal file
View File

@ -0,0 +1 @@
Teletype (#62)

2
tgbg/DES.md Normal file
View File

@ -0,0 +1,2 @@
解析 Telegram 聊天窗口背景图。
指令:,tgbg

1
unban/DES.md Normal file
View File

@ -0,0 +1 @@
解除封禁一位用户。指令:,unban

1
unixtime/DES.md Normal file
View File

@ -0,0 +1 @@
unixtime Unix时间戳转换

17
update_des.py Normal file
View File

@ -0,0 +1,17 @@
import json
import os
def update_des():
with open("list.json", "r", encoding="utf8") as f:
list_json = json.load(f)
for plugin in list_json["list"]:
if os.path.exists(f"{plugin['name']}{os.sep}DES.md"):
with open(f"{plugin['name']}{os.sep}DES.md", "r", encoding="utf8") as f:
plugin["des"] = f.read().strip()
with open("list.json", "w", encoding="utf8") as f:
json.dump(list_json, f, ensure_ascii=False, indent=4)
if __name__ == "__main__":
update_des()

View File

@ -1,7 +1,10 @@
import json
import os
import decimal
from httpx import get
from update_des import update_des
main = get("https://api.github.com/repos/TeamPGM/PagerMaid_Plugins_Pyro/commits/v2").json()
plugins = []
for file in main["files"]:
@ -19,21 +22,29 @@ for plugin in plugins:
for plug_dict in list_json["list"]:
if plug_dict["name"] == plugin:
exist = True
old_version = float(plug_dict["version"])
list_json["list"][list_json["list"].index(plug_dict)]["version"] = str(old_version + 0.01)
old_version = decimal.Decimal(plug_dict["version"])
list_json["list"][list_json["list"].index(plug_dict)]["version"] = str(
old_version + decimal.Decimal("0.01")
)
if delete:
list_json["list"].remove(plug_dict)
break
if not exist:
list_json["list"].append(
{"name": plugin,
{
"name": plugin,
"version": "1.0",
"section": "chat",
"maintainer": main['commit']['author']['name'],
"size": f"{os.path.getsize(f'{plugin}{os.sep}main.py') / 1000} kb",
"supported": True,
"des-short": main['commit']['message'],
"des": main['commit']['message']})
"des": "",
}
)
with open("list.json", "w", encoding="utf8") as f:
json.dump(list_json, f, ensure_ascii=False, indent=4)
update_des()
print(main['sha'] + " ok")

1
urbandictionary/DES.md Normal file
View File

@ -0,0 +1 @@
urbandictionary 解释英语俚语词汇

1
vctools/DES.md Normal file
View File

@ -0,0 +1 @@
vctools 开启或者关闭群组直播间

4
vip/DES.md Normal file
View File

@ -0,0 +1,4 @@
命令天气weather weather_pic weather_he
Duckduckgoduckduckgo
彩云翻译caiyun
文本转语音tts_nan tts_nv tts_tw tts_ne tts_en。与 weather 插件冲突

View File

@ -0,0 +1 @@
仅联系人可以发送语音消息给我。

1
weather/DES.md Normal file
View File

@ -0,0 +1 @@
这个人很懒,什么都没有留下。

1
weather_lite/DES.md Normal file
View File

@ -0,0 +1 @@
查询天气。指令:,weather_lite

1
websocket/DES.md Normal file
View File

@ -0,0 +1 @@
websocket 使用 ws 管理机器人

1
whois/DES.md Normal file
View File

@ -0,0 +1 @@
查看域名是否已被注册、注册日期、过期日期、域名状态、DNS解析服务器等。

1
xtao-some/DES.md Normal file
View File

@ -0,0 +1 @@
超多功能 例如 ,ip

1
yinglish/DES.md Normal file
View File

@ -0,0 +1 @@
yinglish 能把中文和英文翻译成淫语的翻译机!

1
ytdl/DES.md Normal file
View File

@ -0,0 +1 @@
ytdl Upload Youtube、Bilibili video to telegram

2
yvlu/DES.md Normal file
View File

@ -0,0 +1,2 @@
将回复的消息或者输入字符串转换成语录图片。
指令:,yvlu

1
zpr/DES.md Normal file
View File

@ -0,0 +1 @@
zpr 随机获取一组涩涩纸片人