🔧 chore: 图片上传至图床
46
README.md
@ -1,6 +1,6 @@
|
||||
<p align="center">
|
||||
<a href="https://gitee.com/kyrzy0416/rconsole-plugin">
|
||||
<img width="200" src="./img/logo.webp">
|
||||
<img width="200" src="https://alist.rrorangedev.net/Kua/PicGo/logo.webp">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
<div align="center">
|
||||
<h1>R-plugin</h1>
|
||||
写给朋友们用的<a href="https://gitee.com/Le-niao/Yunzai-Bot" target="_blank">Yunzai-Bot</a>插件,插件的各种业务来源于周围人
|
||||
<img src="./img/github-contribution-grid-snake.svg">
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/github-contribution-grid-snake.svg">
|
||||
</div>
|
||||
|
||||
> 📢 推荐 TG 个人互联网分享频道(分享日常冲浪互联网看到好玩的网站、app应用):[RrOrange和朋友们](https://t.me/RrOrangeAndFriends)
|
||||
@ -47,15 +47,15 @@
|
||||
|
||||
|
||||
## 🧏 使用实例
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
## 📔 使用说明
|
||||
|
||||
@ -139,11 +139,11 @@ apt-get install atomicparsley
|
||||
> 如果解析有问题参考issue:[#I6MFF7](https://gitee.com/kyrzy0416/rconsole-plugin/issues/I6MFF7)
|
||||
> [#I7KQVY](https://gitee.com/kyrzy0416/rconsole-plugin/issues/I7KQVY)
|
||||
|
||||
<img src="./img/example6.webp" alt="小程序解析" width="50%" height="50%" />
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/example6.webp" alt="小程序解析" width="50%" height="50%" />
|
||||
|
||||
5. 【可选】对哔哩哔哩解析进行总结:需要填写哔哩哔哩的SESSDATA,或者[【推荐】扫码登录](https://gitee.com/kyrzy0416/rconsole-plugin#b%E7%AB%99%E6%89%AB%E7%A0%81%E7%99%BB%E5%BD%95)
|
||||
|
||||
<img src="./img/example7.webp" alt="小程序解析" width="50%" height="50%" />
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/example7.webp" alt="小程序解析" width="50%" height="50%" />
|
||||
|
||||
6. 【可选】增加视频的时长限制(默认8分钟(60 * 8 = 480)):
|
||||
- 在config/tools.yaml里设置`biliDuration`
|
||||
@ -188,10 +188,10 @@ git clone -b 1.6.7-lts https://gitee.com/kyrzy0416/rconsole-plugin.git
|
||||
### 📺 B站扫码登录
|
||||
命令:`#RBQ`,来自2024/4/1 才子 `Mix` 的命名
|
||||
|
||||

|
||||

|
||||
|
||||
示例:
|
||||

|
||||

|
||||
|
||||
[👉 返回目录](#-qa)
|
||||
|
||||
@ -208,7 +208,7 @@ git clone -b 1.6.7-lts https://gitee.com/kyrzy0416/rconsole-plugin.git
|
||||
2. F12进入控制台,打开`网络/network`
|
||||
3. 搜索`www.douyin.com`,把下面的一串cookie复制进去即可
|
||||
|
||||
<img src="./img/dy_ck.webp" alt="小程序解析" width="50%" height="50%" />
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/dy_ck.webp" alt="小程序解析" width="50%" height="50%" />
|
||||
|
||||
**备用方案1** :
|
||||
|
||||
@ -233,7 +233,7 @@ git clone -b 1.6.7-lts https://gitee.com/kyrzy0416/rconsole-plugin.git
|
||||
- passport_assist_user
|
||||
- ttwid
|
||||
|
||||
<img src="./img/douyin_cookie.webp" alt="小程序解析" width="50%" height="50%" />
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/douyin_cookie.webp" alt="小程序解析" width="50%" height="50%" />
|
||||
|
||||
**备用方案2** (由`@重装小兔`提供)
|
||||
|
||||
@ -285,7 +285,7 @@ git clone -b 1.6.7-lts https://gitee.com/kyrzy0416/rconsole-plugin.git
|
||||
|
||||
2. 在任意群里发送`#设置拉格朗日`,转换一下视频发送方式即可
|
||||
|
||||
<img src="./img/lagrange.webp" width="30%" height="30%">
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/lagrange.webp" width="30%" height="30%">
|
||||
|
||||
[👉 返回目录](#-qa)
|
||||
|
||||
@ -311,7 +311,7 @@ aiApiKey: '' # 用于识图的api key,kimi接口申请:https://platform.moon
|
||||
|
||||
3. 开始游玩
|
||||
|
||||

|
||||

|
||||
|
||||
[👉 返回目录](#-qa)
|
||||
|
||||
@ -331,7 +331,7 @@ aiApiKey: '' # 用于识图的api key,kimi接口申请:https://platform.moon
|
||||
|
||||
2. 进入小红书 - 注册 - 点击 `Cookie-Editor` 的导出 `Header String`
|
||||
|
||||

|
||||

|
||||
|
||||
[👉 返回目录](#-qa)
|
||||
|
||||
@ -370,7 +370,7 @@ apt install aria2
|
||||
|
||||
3. 登录,官方提供了三种登录方式
|
||||
|
||||
<img src="./img/aircraft.webp" width="30%" height="30%">
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/aircraft.webp" width="30%" height="30%">
|
||||
|
||||
4. 添加信任用户(下面分别是设置、查看所有、查看特定信任用户),⚠️ 使用引用的方法去使用命令
|
||||
|
||||
@ -380,11 +380,13 @@ apt install aria2
|
||||
#查询R信任用户
|
||||
```
|
||||
|
||||
<img src="./img/aircraft1.webp" width="30%" height="30%">
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/aircraft1.webp" width="30%" height="30%">
|
||||
|
||||
<img src="./img/aircraft2.webp" width="30%" height="30%">
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/aircraft2.webp" width="30%" height="30%">
|
||||
|
||||
<img src="./img/aircraft3.webp" width="30%" height="30%">
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/aircraft3.webp" width="30%" height="30%">
|
||||
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/PixPin_2024-08-15_08-59-42.png" width="30%" height="30%">
|
||||
|
||||
5. 开始使用!
|
||||
|
||||
@ -417,12 +419,12 @@ apt install aria2
|
||||
|
||||
## 🤺 R插件交流群
|
||||
|
||||
<img src="./img/qq.webp" width="30%" height="30%">
|
||||
<img src="https://alist.rrorangedev.net/Kua/PicGo/qq.webp" width="30%" height="30%">
|
||||
|
||||
> 扫码不行就输入:575663150
|
||||
|
||||
## 📦 业务
|
||||

|
||||

|
||||
|
||||
## 📝 计划功能
|
||||
- [x] YouTube解析(这个可能要🕊一久)
|
||||
|
@ -45,6 +45,11 @@ export class switchers extends plugin {
|
||||
reg: "^#查询R信任用户(.*)",
|
||||
fnc: "searchWhiteList",
|
||||
permission: "master",
|
||||
},
|
||||
{
|
||||
reg: "^#删除R信任用户(.*)",
|
||||
fnc: "deleteWhiteList",
|
||||
permission: "master",
|
||||
}
|
||||
]
|
||||
});
|
||||
@ -199,6 +204,31 @@ export class switchers extends plugin {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
async deleteWhiteList(e) {
|
||||
let trustUserId;
|
||||
// 判断是不是回复用户命令
|
||||
if (e?.reply_id !== undefined) {
|
||||
trustUserId = (await e.getReply()).user_id;
|
||||
} else {
|
||||
// 如果不是回复就看发送内容
|
||||
trustUserId = e.msg.replace("#设置R信任用户", "");
|
||||
}
|
||||
let whiteList = await redisExistAndGetKey(REDOS_YUNZAI_WHITELIST);
|
||||
if (whiteList == null) {
|
||||
e.reply("R插件当前没有任何信任用户:");
|
||||
return;
|
||||
}
|
||||
// 重复检测
|
||||
if (!whiteList.includes(trustUserId)) {
|
||||
e.reply("R信任用户不存在,无须删除!");
|
||||
return;
|
||||
}
|
||||
whiteList = whiteList.filter((item) => item !== trustUserId);
|
||||
// 放置到Redis里
|
||||
await redisSetKey(REDOS_YUNZAI_WHITELIST, whiteList);
|
||||
e.reply(`成功删除R信任用户:${ trustUserId }`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 159 KiB |
BIN
img/dy_ck.webp
Before Width: | Height: | Size: 31 KiB |
BIN
img/example.webp
Before Width: | Height: | Size: 265 KiB |
Before Width: | Height: | Size: 92 KiB |
Before Width: | Height: | Size: 960 KiB |
Before Width: | Height: | Size: 218 KiB |
Before Width: | Height: | Size: 542 KiB |
Before Width: | Height: | Size: 883 KiB |
Before Width: | Height: | Size: 376 KiB |
Before Width: | Height: | Size: 894 KiB |
Before Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 29 KiB |
BIN
img/help.webp
Before Width: | Height: | Size: 308 KiB |
Before Width: | Height: | Size: 13 KiB |
BIN
img/logo.webp
Before Width: | Height: | Size: 50 KiB |
BIN
img/qq.webp
Before Width: | Height: | Size: 47 KiB |
BIN
img/rbq.webp
Before Width: | Height: | Size: 3.7 KiB |
BIN
img/rbq2.webp
Before Width: | Height: | Size: 63 KiB |
BIN
img/wxkimi.webp
Before Width: | Height: | Size: 217 KiB |
Before Width: | Height: | Size: 9.5 KiB |