mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🦄 refactor: 小蓝鸟国际化
This commit is contained in:
parent
39491ab61b
commit
afac5f827c
@ -120,7 +120,7 @@ async tuiimg (e) {
|
||||
|
||||
### 其他进阶操作
|
||||
【可选】相关配置(apps/tools.js):
|
||||
> twiiter-api:https://developer.twitter.com/en
|
||||
> 小蓝鸟api:https://developer.twitter.com/en
|
||||
注册完之后将`Bearer Token`填入config/tools.yaml`
|
||||
|
||||
> 百度翻译api:https://fanyi-api.baidu.com/doc/21
|
||||
|
@ -145,7 +145,7 @@ export class tools extends plugin {
|
||||
// no_watermark_image_list.push(i.url_list[0])
|
||||
// 有水印图片列表
|
||||
// watermark_image_list.push(i.download_url_list[0])
|
||||
e.reply(segment.image(i.url_list[0]));
|
||||
e.reply(segment.image(i.download_url_list[0]));
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -338,7 +338,7 @@ export class tools extends plugin {
|
||||
return true;
|
||||
}
|
||||
|
||||
// twitter解析
|
||||
// 小蓝鸟解析
|
||||
// 例子:https://twitter.com/chonkyanimalx/status/1595834168000204800
|
||||
async twitter(e) {
|
||||
// 配置参数及解析
|
||||
@ -358,7 +358,7 @@ export class tools extends plugin {
|
||||
expansions: ["entities.mentions.username", "attachments.media_keys"],
|
||||
})
|
||||
.then(resp => {
|
||||
e.reply(`识别:腿忒学习版,${resp.data.text}`);
|
||||
e.reply(`识别:小蓝鸟学习版,${resp.data.text}`);
|
||||
const downloadPath = `${this.defaultPath}${this.e.group_id || this.e.user_id}`;
|
||||
// 创建文件夹(如果没有过这个群)
|
||||
if (!fs.existsSync(downloadPath)) {
|
||||
|
@ -50,7 +50,7 @@
|
||||
title: "bilibili/b23"
|
||||
desc: 哔哩哔哩分享实时下载
|
||||
- icon: 推特
|
||||
title: "twitter"
|
||||
title: "小蓝鸟"
|
||||
desc: 推特学习版分享实时下载
|
||||
- icon: acfun
|
||||
title: "acfun"
|
||||
|
@ -27,7 +27,7 @@ export function supportGuoba() {
|
||||
{
|
||||
field: "tools.proxyAddr",
|
||||
label: "魔法地址",
|
||||
bottomHelpMessage: "tiktok/twitter等要使用魔法时需要填写",
|
||||
bottomHelpMessage: "tiktok/小蓝鸟等要使用魔法时需要填写",
|
||||
component: "Input",
|
||||
required: false,
|
||||
componentProps: {
|
||||
@ -37,7 +37,7 @@ export function supportGuoba() {
|
||||
{
|
||||
field: "tools.proxyPort",
|
||||
label: "魔法端口",
|
||||
bottomHelpMessage: "tiktok/twitter等要使用魔法时需要填写",
|
||||
bottomHelpMessage: "tiktok/小蓝鸟等要使用魔法时需要填写",
|
||||
component: "Input",
|
||||
required: false,
|
||||
componentProps: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user