diff --git a/1A2B/DES.md b/1A2B/DES.md new file mode 100644 index 0000000..fe5cd80 --- /dev/null +++ b/1A2B/DES.md @@ -0,0 +1,11 @@ +Play a game of 1A2B, command:,1a2b + +# 例如 + +,1a2b start + +,1a2b 1234 + +,1a2b 5678 + +... diff --git a/abstract/DES.md b/abstract/DES.md new file mode 100644 index 0000000..a86a81f --- /dev/null +++ b/abstract/DES.md @@ -0,0 +1 @@ +能够将你的语句变得抽象起来~ \ No newline at end of file diff --git a/aff/DES.md b/aff/DES.md new file mode 100644 index 0000000..2e907cd --- /dev/null +++ b/aff/DES.md @@ -0,0 +1 @@ +aff 快速发送 aff \ No newline at end of file diff --git a/aireply/DES.md b/aireply/DES.md new file mode 100644 index 0000000..77ad06b --- /dev/null +++ b/aireply/DES.md @@ -0,0 +1 @@ +aireply 通过预设根据语义分析进行应答,支持设置白名单并全局开关 \ No newline at end of file diff --git a/alicloud/DES.md b/alicloud/DES.md new file mode 100644 index 0000000..a9d0df0 --- /dev/null +++ b/alicloud/DES.md @@ -0,0 +1 @@ +alicloud 查询阿里云盘不定期掉落福利 \ No newline at end of file diff --git a/annualreport/DES.md b/annualreport/DES.md new file mode 100644 index 0000000..5eb1f1b --- /dev/null +++ b/annualreport/DES.md @@ -0,0 +1 @@ +annualreport TG年度报告 \ No newline at end of file diff --git a/atadmins/DES.md b/atadmins/DES.md new file mode 100644 index 0000000..faf6cd5 --- /dev/null +++ b/atadmins/DES.md @@ -0,0 +1,2 @@ +一键 AT 本群管理员。 +指令:,atadmins \ No newline at end of file diff --git a/audio_to_voice/DES.md b/audio_to_voice/DES.md new file mode 100644 index 0000000..7f46165 --- /dev/null +++ b/audio_to_voice/DES.md @@ -0,0 +1 @@ +audio_to_voice 将音乐文件转换为语音发送 \ No newline at end of file diff --git a/autochangename/DES.md b/autochangename/DES.md new file mode 100644 index 0000000..7785aba --- /dev/null +++ b/autochangename/DES.md @@ -0,0 +1 @@ +每 30 秒自动更新 last_name 为时间等小玩意。 \ No newline at end of file diff --git a/autodel/DES.md b/autodel/DES.md new file mode 100644 index 0000000..4a71b8b --- /dev/null +++ b/autodel/DES.md @@ -0,0 +1 @@ +autodel 定时删除消息 \ No newline at end of file diff --git a/base64/DES.md b/base64/DES.md new file mode 100644 index 0000000..658df5c --- /dev/null +++ b/base64/DES.md @@ -0,0 +1,2 @@ +Base64编码/解码。 +命令:,b64e ,b64d \ No newline at end of file diff --git a/bc/DES.md b/bc/DES.md new file mode 100644 index 0000000..3db76b6 --- /dev/null +++ b/bc/DES.md @@ -0,0 +1 @@ +命令:bc 数量 货币1 货币2 \ No newline at end of file diff --git a/bin/DES.md b/bin/DES.md new file mode 100644 index 0000000..2d78b93 --- /dev/null +++ b/bin/DES.md @@ -0,0 +1 @@ +使用binlist api查询,1分钟限额10次否则报错。使用方法:,bin xxx (xxx为信用卡卡号前4-8位,推荐6位) \ No newline at end of file diff --git a/bingwall/DES.md b/bingwall/DES.md new file mode 100644 index 0000000..39c1a90 --- /dev/null +++ b/bingwall/DES.md @@ -0,0 +1,2 @@ +获取 Bing 每日壁纸。 +指令:,bingwall \ No newline at end of file diff --git a/calculator/DES.md b/calculator/DES.md new file mode 100644 index 0000000..12dab99 --- /dev/null +++ b/calculator/DES.md @@ -0,0 +1,3 @@ +支持基本运算(加减乘除乘方开方)及进制转换。 +命令:,cal [表达式] ,con [进制] [数字] +例如:`,cal 1+2` `,con 16 10` \ No newline at end of file diff --git a/chat_transfer/DES.md b/chat_transfer/DES.md new file mode 100644 index 0000000..00881a8 --- /dev/null +++ b/chat_transfer/DES.md @@ -0,0 +1,2 @@ +导出、导入已加入的群组/频道(仅可导入公开群组/频道) +指令:,chat_transfer \ No newline at end of file diff --git a/clean_member/DES.md b/clean_member/DES.md new file mode 100644 index 0000000..101f4a4 --- /dev/null +++ b/clean_member/DES.md @@ -0,0 +1 @@ +clean_member 多种方式清理群成员 \ No newline at end of file diff --git a/clear_blocked/DES.md b/clear_blocked/DES.md new file mode 100644 index 0000000..7ff0501 --- /dev/null +++ b/clear_blocked/DES.md @@ -0,0 +1 @@ +clear_blocked 清理所有已拉黑用户 \ No newline at end of file diff --git a/clear_private_chat/DES.md b/clear_private_chat/DES.md new file mode 100644 index 0000000..e0e27de --- /dev/null +++ b/clear_private_chat/DES.md @@ -0,0 +1 @@ +clear_private_chat 通过指定关键词清除私聊 \ No newline at end of file diff --git a/code/DES.md b/code/DES.md new file mode 100644 index 0000000..e409afa --- /dev/null +++ b/code/DES.md @@ -0,0 +1 @@ +code 在线运行代码插件,支持输入 \ No newline at end of file diff --git a/copy_sticker_set/DES.md b/copy_sticker_set/DES.md new file mode 100644 index 0000000..b526608 --- /dev/null +++ b/copy_sticker_set/DES.md @@ -0,0 +1 @@ +copy_sticker_set 复制整个贴纸包 \ No newline at end of file diff --git a/covid/DES.md b/covid/DES.md new file mode 100644 index 0000000..6ab1dce --- /dev/null +++ b/covid/DES.md @@ -0,0 +1 @@ +covid 获取新冠疫情信息 \ No newline at end of file diff --git a/crazy4/DES.md b/crazy4/DES.md new file mode 100644 index 0000000..56ffecc --- /dev/null +++ b/crazy4/DES.md @@ -0,0 +1 @@ +crazy4 天天疯狂!随机输出KFC疯狂星期四文案 \ No newline at end of file diff --git a/da/DES.md b/da/DES.md new file mode 100644 index 0000000..15e63b8 --- /dev/null +++ b/da/DES.md @@ -0,0 +1 @@ +da 删除群内所有消息(非群组管理员只删除自己的消息) \ No newline at end of file diff --git a/dc/DES.md b/dc/DES.md new file mode 100644 index 0000000..abdbfa1 --- /dev/null +++ b/dc/DES.md @@ -0,0 +1 @@ +列出本群dc分布/查看某个人所在的dc服务器(指令: ,dc) \ No newline at end of file diff --git a/dictionary/DES.md b/dictionary/DES.md new file mode 100644 index 0000000..5120bcd --- /dev/null +++ b/dictionary/DES.md @@ -0,0 +1 @@ +dictionary 查询英语单词的意思 \ No newline at end of file diff --git a/diss/DES.md b/diss/DES.md new file mode 100644 index 0000000..307291b --- /dev/null +++ b/diss/DES.md @@ -0,0 +1 @@ +儒雅随和版祖安语录。 \ No newline at end of file diff --git a/dme/DES.md b/dme/DES.md new file mode 100644 index 0000000..1515c63 --- /dev/null +++ b/dme/DES.md @@ -0,0 +1,2 @@ +删除当前对话您发送的特定数量的消息。 +指令:,dme \ No newline at end of file diff --git a/eat/DES.md b/eat/DES.md new file mode 100644 index 0000000..1d15c23 --- /dev/null +++ b/eat/DES.md @@ -0,0 +1 @@ +这个人很懒,什么都没有留下。 \ No newline at end of file diff --git a/epic/DES.md b/epic/DES.md new file mode 100644 index 0000000..68c1ef5 --- /dev/null +++ b/epic/DES.md @@ -0,0 +1,2 @@ +获取 Epic 喜加一限免。 +指令:,epic \ No newline at end of file diff --git a/everyday_en/DES.md b/everyday_en/DES.md new file mode 100644 index 0000000..67d5ba2 --- /dev/null +++ b/everyday_en/DES.md @@ -0,0 +1 @@ +支持群订阅 \ No newline at end of file diff --git a/everyday_greet/DES.md b/everyday_greet/DES.md new file mode 100644 index 0000000..7b99b82 --- /dev/null +++ b/everyday_greet/DES.md @@ -0,0 +1,2 @@ +每日问候。 +指令:,everyday_greet \ No newline at end of file diff --git a/fadian/DES.md b/fadian/DES.md new file mode 100644 index 0000000..165c754 --- /dev/null +++ b/fadian/DES.md @@ -0,0 +1 @@ +fadian 促进群员感情的有趣插件&情话生成 \ No newline at end of file diff --git a/get_status/DES.md b/get_status/DES.md new file mode 100644 index 0000000..726b865 --- /dev/null +++ b/get_status/DES.md @@ -0,0 +1 @@ +get_status 获取自己或者他人的大会员自定义 emoji 状态 \ No newline at end of file diff --git a/getdel/DES.md b/getdel/DES.md new file mode 100644 index 0000000..e86228e --- /dev/null +++ b/getdel/DES.md @@ -0,0 +1,2 @@ +获取当前群组的死号数。 +指令:,getdel \ No newline at end of file diff --git a/getstickers/DES.md b/getstickers/DES.md new file mode 100644 index 0000000..cd8d04e --- /dev/null +++ b/getstickers/DES.md @@ -0,0 +1 @@ +getstickers 获取整个贴纸包的贴纸 \ No newline at end of file diff --git a/gfw/DES.md b/gfw/DES.md new file mode 100644 index 0000000..33c79d0 --- /dev/null +++ b/gfw/DES.md @@ -0,0 +1 @@ +gfw 查询ip或域名是否被墙 \ No newline at end of file diff --git a/google/DES.md b/google/DES.md new file mode 100644 index 0000000..4c68053 --- /dev/null +++ b/google/DES.md @@ -0,0 +1 @@ +google 谷歌搜索 \ No newline at end of file diff --git a/his/DES.md b/his/DES.md new file mode 100644 index 0000000..3d557e0 --- /dev/null +++ b/his/DES.md @@ -0,0 +1 @@ +his 群成员历史消息记录查询 \ No newline at end of file diff --git a/hitokoto/DES.md b/hitokoto/DES.md new file mode 100644 index 0000000..ab38b1d --- /dev/null +++ b/hitokoto/DES.md @@ -0,0 +1,2 @@ +一言。 +指令:,hitokoto \ No newline at end of file diff --git a/httpcat/DES.md b/httpcat/DES.md new file mode 100644 index 0000000..1772d7c --- /dev/null +++ b/httpcat/DES.md @@ -0,0 +1,7 @@ +httpcat 获取 http 状态码图片 + +### 100 + +,httpcat 100 + +![](https://http.cat/100) diff --git a/icp/DES.md b/icp/DES.md new file mode 100644 index 0000000..772c130 --- /dev/null +++ b/icp/DES.md @@ -0,0 +1 @@ +icp 查询域名是否已备案 \ No newline at end of file diff --git a/ip/DES.md b/ip/DES.md new file mode 100644 index 0000000..e0f83d6 --- /dev/null +++ b/ip/DES.md @@ -0,0 +1 @@ +ip 查询 ip 归属地 \ No newline at end of file diff --git a/jikipedia/DES.md b/jikipedia/DES.md new file mode 100644 index 0000000..88dc092 --- /dev/null +++ b/jikipedia/DES.md @@ -0,0 +1 @@ +jikipedia 小鸡词典,梗查询 \ No newline at end of file diff --git a/keyword/DES.md b/keyword/DES.md new file mode 100644 index 0000000..0eca9b1 --- /dev/null +++ b/keyword/DES.md @@ -0,0 +1,2 @@ +关键词回复。 +指令:,keyword \ No newline at end of file diff --git a/list.json b/list.json index d8c036b..3786dfe 100644 --- a/list.json +++ b/list.json @@ -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 能把中文和英文翻译成淫语的翻译机!", diff --git a/listusernames/DES.md b/listusernames/DES.md new file mode 100644 index 0000000..158a643 --- /dev/null +++ b/listusernames/DES.md @@ -0,0 +1 @@ +列出所有属于自己的公开群组/频道。命令:,listusernames \ No newline at end of file diff --git a/lottery/DES.md b/lottery/DES.md new file mode 100644 index 0000000..8b818d7 --- /dev/null +++ b/lottery/DES.md @@ -0,0 +1,2 @@ +举行单群抽奖活动。 +指令:,lottery \ No newline at end of file diff --git a/luxiaoxunbs/DES.md b/luxiaoxunbs/DES.md new file mode 100644 index 0000000..9d61b54 --- /dev/null +++ b/luxiaoxunbs/DES.md @@ -0,0 +1 @@ +luxiaoxunbs 鲁小迅整点报时 \ No newline at end of file diff --git a/moyu/DES.md b/moyu/DES.md new file mode 100644 index 0000000..67d5ba2 --- /dev/null +++ b/moyu/DES.md @@ -0,0 +1 @@ +支持群订阅 \ No newline at end of file diff --git a/netease/DES.md b/netease/DES.md new file mode 100644 index 0000000..a07f6e4 --- /dev/null +++ b/netease/DES.md @@ -0,0 +1,2 @@ +网易云音乐。 +指令:,netease \ No newline at end of file diff --git a/netease_comment/DES.md b/netease_comment/DES.md new file mode 100644 index 0000000..1cb7194 --- /dev/null +++ b/netease_comment/DES.md @@ -0,0 +1,2 @@ +随机一条网易云音乐评论。 +指令:,netease_comment \ No newline at end of file diff --git a/news/DES.md b/news/DES.md new file mode 100644 index 0000000..2003852 --- /dev/null +++ b/news/DES.md @@ -0,0 +1,2 @@ +每日新闻、历史上的今天、天天成语、慧语香风、诗歌天地。 +指令:,news \ No newline at end of file diff --git a/news60s/DES.md b/news60s/DES.md new file mode 100644 index 0000000..503cdd3 --- /dev/null +++ b/news60s/DES.md @@ -0,0 +1 @@ +news60s 60s 看世界新闻 \ No newline at end of file diff --git a/no_mentions/DES.md b/no_mentions/DES.md new file mode 100644 index 0000000..c86e16d --- /dev/null +++ b/no_mentions/DES.md @@ -0,0 +1 @@ +no_mentions 自动消除某个对话的 @ 提醒 \ No newline at end of file diff --git a/no_reactions/DES.md b/no_reactions/DES.md new file mode 100644 index 0000000..bc1fc73 --- /dev/null +++ b/no_reactions/DES.md @@ -0,0 +1 @@ +no_reactions 自动已读某个对话的消息表情表态 \ No newline at end of file diff --git a/openaichat/DES.md b/openaichat/DES.md new file mode 100644 index 0000000..fbafb12 --- /dev/null +++ b/openaichat/DES.md @@ -0,0 +1,3 @@ +openaichat 使用 OpenAI Chat 聊天 +基于 text-davinci-003 模型,与 ChatGPT 的效果有些许不同 +代码参考了原先的 ChatGPT 插件 \ No newline at end of file diff --git a/paolu/DES.md b/paolu/DES.md new file mode 100644 index 0000000..53ea85c --- /dev/null +++ b/paolu/DES.md @@ -0,0 +1 @@ +paolu ⚠一键跑路 删除群内消息并禁言⚠ \ No newline at end of file diff --git a/pfp/DES.md b/pfp/DES.md new file mode 100644 index 0000000..cfe23f0 --- /dev/null +++ b/pfp/DES.md @@ -0,0 +1 @@ +pfp 快速设置头像 \ No newline at end of file diff --git a/pic_to_sticker/DES.md b/pic_to_sticker/DES.md new file mode 100644 index 0000000..54b9780 --- /dev/null +++ b/pic_to_sticker/DES.md @@ -0,0 +1 @@ +pic_to_sticker 将你回复的图片转换为贴纸 \ No newline at end of file diff --git a/pixiv/DES.md b/pixiv/DES.md new file mode 100644 index 0000000..3b11d5b --- /dev/null +++ b/pixiv/DES.md @@ -0,0 +1 @@ +提供 Pixiv 相关服务 \ No newline at end of file diff --git a/pmcaptcha/DES.md b/pmcaptcha/DES.md new file mode 100644 index 0000000..f0342b3 --- /dev/null +++ b/pmcaptcha/DES.md @@ -0,0 +1 @@ +私聊人机验证,助您远离广告烦恼 \ No newline at end of file diff --git a/portball/DES.md b/portball/DES.md new file mode 100644 index 0000000..de739f6 --- /dev/null +++ b/portball/DES.md @@ -0,0 +1,2 @@ +回复你要临时禁言的人的消息来实现XX秒的禁言。 +指令:,portball [理由]|<时间/秒> \ No newline at end of file diff --git a/premium/DES.md b/premium/DES.md new file mode 100644 index 0000000..6804ecf --- /dev/null +++ b/premium/DES.md @@ -0,0 +1 @@ +列出本群premium用户数量(指令: ,premium) \ No newline at end of file diff --git a/print_official_notifications/DES.md b/print_official_notifications/DES.md new file mode 100644 index 0000000..e4fc3f1 --- /dev/null +++ b/print_official_notifications/DES.md @@ -0,0 +1 @@ +print_official_notifications 将收到的官方私聊打印到控制台 \ No newline at end of file diff --git a/pypi/DES.md b/pypi/DES.md new file mode 100644 index 0000000..6265087 --- /dev/null +++ b/pypi/DES.md @@ -0,0 +1 @@ +pypi Search PyPI packages \ No newline at end of file diff --git a/qr/DES.md b/qr/DES.md new file mode 100644 index 0000000..760cb75 --- /dev/null +++ b/qr/DES.md @@ -0,0 +1 @@ +qr 二维码相关操作 \ No newline at end of file diff --git a/rate/DES.md b/rate/DES.md new file mode 100644 index 0000000..ca67280 --- /dev/null +++ b/rate/DES.md @@ -0,0 +1 @@ +rate 货币汇率查询 \ No newline at end of file diff --git a/resou/DES.md b/resou/DES.md new file mode 100644 index 0000000..4919b00 --- /dev/null +++ b/resou/DES.md @@ -0,0 +1 @@ +命令:wbrs,zhrs,dyrs。 \ No newline at end of file diff --git a/sb/DES.md b/sb/DES.md new file mode 100644 index 0000000..54943cb --- /dev/null +++ b/sb/DES.md @@ -0,0 +1,2 @@ +在自己拥有管理员权限的共同群组中封禁一位用户。 +指令:,sb \ No newline at end of file diff --git a/sendat/DES.md b/sendat/DES.md new file mode 100644 index 0000000..da12ae7 --- /dev/null +++ b/sendat/DES.md @@ -0,0 +1,2 @@ +定时发送消息。 +指令:,sendat \ No newline at end of file diff --git a/session/DES.md b/session/DES.md new file mode 100644 index 0000000..90b44a5 --- /dev/null +++ b/session/DES.md @@ -0,0 +1,2 @@ +注销/查询已登录的会话。 +指令:,session \ No newline at end of file diff --git a/set_status/DES.md b/set_status/DES.md new file mode 100644 index 0000000..78fab45 --- /dev/null +++ b/set_status/DES.md @@ -0,0 +1 @@ +set_status 快速设置大会员自定义 emoji 状态 \ No newline at end of file diff --git a/shift/DES.md b/shift/DES.md new file mode 100644 index 0000000..1e414cc --- /dev/null +++ b/shift/DES.md @@ -0,0 +1,3 @@ +自动转发频道新消息或者从零开始备份频道。 +指令:,shift +查看帮助:,help shift \ No newline at end of file diff --git a/silly_girl/DES.md b/silly_girl/DES.md new file mode 100644 index 0000000..98e6267 --- /dev/null +++ b/silly_girl/DES.md @@ -0,0 +1 @@ +傻妞插件,用户可以通过此插件召唤傻妞,Repo:https://github.com/cdle/sillyGirl \ No newline at end of file diff --git a/speed_test/DES.md b/speed_test/DES.md new file mode 100644 index 0000000..3429846 --- /dev/null +++ b/speed_test/DES.md @@ -0,0 +1,2 @@ +测速。 +指令:,speedtest \ No newline at end of file diff --git a/sticker/DES.md b/sticker/DES.md new file mode 100644 index 0000000..e2ca56a --- /dev/null +++ b/sticker/DES.md @@ -0,0 +1 @@ +Sticker Tools \ No newline at end of file diff --git a/sticker_to_pic/DES.md b/sticker_to_pic/DES.md new file mode 100644 index 0000000..2758a60 --- /dev/null +++ b/sticker_to_pic/DES.md @@ -0,0 +1 @@ +sticker_to_pic 将你回复的静态贴纸转换为图片 \ No newline at end of file diff --git a/sticker_transfer/DES.md b/sticker_transfer/DES.md new file mode 100644 index 0000000..1d8e215 --- /dev/null +++ b/sticker_transfer/DES.md @@ -0,0 +1,2 @@ +贴纸迁移。 +指令:,sticker_transfer \ No newline at end of file diff --git a/tel/DES.md b/tel/DES.md new file mode 100644 index 0000000..a0762c9 --- /dev/null +++ b/tel/DES.md @@ -0,0 +1 @@ +查询电话号码归属地,号码段,卡类型,运营商及通信标准。命令:tel。 \ No newline at end of file diff --git a/teletype/DES.md b/teletype/DES.md new file mode 100644 index 0000000..52fece8 --- /dev/null +++ b/teletype/DES.md @@ -0,0 +1 @@ +Teletype (#62) \ No newline at end of file diff --git a/tgbg/DES.md b/tgbg/DES.md new file mode 100644 index 0000000..e00714b --- /dev/null +++ b/tgbg/DES.md @@ -0,0 +1,2 @@ +解析 Telegram 聊天窗口背景图。 +指令:,tgbg \ No newline at end of file diff --git a/unban/DES.md b/unban/DES.md new file mode 100644 index 0000000..fa19d82 --- /dev/null +++ b/unban/DES.md @@ -0,0 +1 @@ +解除封禁一位用户。指令:,unban \ No newline at end of file diff --git a/unixtime/DES.md b/unixtime/DES.md new file mode 100644 index 0000000..dc835c2 --- /dev/null +++ b/unixtime/DES.md @@ -0,0 +1 @@ +unixtime Unix时间戳转换 \ No newline at end of file diff --git a/update_des.py b/update_des.py new file mode 100644 index 0000000..5a6115f --- /dev/null +++ b/update_des.py @@ -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() diff --git a/update_list.py b/update_list.py index 05ae711..6b4e6e9 100644 --- a/update_list.py +++ b/update_list.py @@ -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, - "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']}) + { + "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": "", + } + ) 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!") diff --git a/urbandictionary/DES.md b/urbandictionary/DES.md new file mode 100644 index 0000000..214d9e6 --- /dev/null +++ b/urbandictionary/DES.md @@ -0,0 +1 @@ +urbandictionary 解释英语俚语词汇 \ No newline at end of file diff --git a/vctools/DES.md b/vctools/DES.md new file mode 100644 index 0000000..9e762a2 --- /dev/null +++ b/vctools/DES.md @@ -0,0 +1 @@ +vctools 开启或者关闭群组直播间 \ No newline at end of file diff --git a/vip/DES.md b/vip/DES.md new file mode 100644 index 0000000..94c5e6d --- /dev/null +++ b/vip/DES.md @@ -0,0 +1,4 @@ +命令:天气:weather weather_pic weather_he +Duckduckgo:duckduckgo +彩云翻译:caiyun +文本转语音:tts_nan tts_nv tts_tw tts_ne tts_en。与 weather 插件冲突 \ No newline at end of file diff --git a/voice_only_contact/DES.md b/voice_only_contact/DES.md new file mode 100644 index 0000000..ec544e2 --- /dev/null +++ b/voice_only_contact/DES.md @@ -0,0 +1 @@ +仅联系人可以发送语音消息给我。 \ No newline at end of file diff --git a/weather/DES.md b/weather/DES.md new file mode 100644 index 0000000..1d15c23 --- /dev/null +++ b/weather/DES.md @@ -0,0 +1 @@ +这个人很懒,什么都没有留下。 \ No newline at end of file diff --git a/weather_lite/DES.md b/weather_lite/DES.md new file mode 100644 index 0000000..343a168 --- /dev/null +++ b/weather_lite/DES.md @@ -0,0 +1 @@ +查询天气。指令:,weather_lite \ No newline at end of file diff --git a/websocket/DES.md b/websocket/DES.md new file mode 100644 index 0000000..2db6530 --- /dev/null +++ b/websocket/DES.md @@ -0,0 +1 @@ +websocket 使用 ws 管理机器人 \ No newline at end of file diff --git a/whois/DES.md b/whois/DES.md new file mode 100644 index 0000000..36ff9af --- /dev/null +++ b/whois/DES.md @@ -0,0 +1 @@ +查看域名是否已被注册、注册日期、过期日期、域名状态、DNS解析服务器等。 \ No newline at end of file diff --git a/xtao-some/DES.md b/xtao-some/DES.md new file mode 100644 index 0000000..ce6d96e --- /dev/null +++ b/xtao-some/DES.md @@ -0,0 +1 @@ +超多功能 例如 ,ip \ No newline at end of file diff --git a/yinglish/DES.md b/yinglish/DES.md new file mode 100644 index 0000000..e7107c4 --- /dev/null +++ b/yinglish/DES.md @@ -0,0 +1 @@ +yinglish 能把中文和英文翻译成淫语的翻译机! \ No newline at end of file diff --git a/ytdl/DES.md b/ytdl/DES.md new file mode 100644 index 0000000..11e0d5c --- /dev/null +++ b/ytdl/DES.md @@ -0,0 +1 @@ +ytdl Upload Youtube、Bilibili video to telegram \ No newline at end of file diff --git a/yvlu/DES.md b/yvlu/DES.md new file mode 100644 index 0000000..bf9b4c0 --- /dev/null +++ b/yvlu/DES.md @@ -0,0 +1,2 @@ +将回复的消息或者输入字符串转换成语录图片。 +指令:,yvlu \ No newline at end of file diff --git a/zpr/DES.md b/zpr/DES.md new file mode 100644 index 0000000..c03f7b0 --- /dev/null +++ b/zpr/DES.md @@ -0,0 +1 @@ +zpr 随机获取一组涩涩纸片人 \ No newline at end of file