🦄 refactor: 小蓝鸟国际化

This commit is contained in:
zhiyu1998 2023-02-20 12:05:09 +08:00
parent 39491ab61b
commit afac5f827c
4 changed files with 7 additions and 7 deletions

View File

@ -120,7 +120,7 @@ async tuiimg (e) {
### 其他进阶操作 ### 其他进阶操作
【可选】相关配置(apps/tools.js) 【可选】相关配置(apps/tools.js)
> twiiter-api:https://developer.twitter.com/en > 小蓝鸟api:https://developer.twitter.com/en
注册完之后将`Bearer Token`填入config/tools.yaml` 注册完之后将`Bearer Token`填入config/tools.yaml`
> 百度翻译api:https://fanyi-api.baidu.com/doc/21 > 百度翻译api:https://fanyi-api.baidu.com/doc/21

View File

@ -145,7 +145,7 @@ export class tools extends plugin {
// no_watermark_image_list.push(i.url_list[0]) // no_watermark_image_list.push(i.url_list[0])
// 有水印图片列表 // 有水印图片列表
// watermark_image_list.push(i.download_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; return true;
} }
// twitter解析 // 小蓝鸟解析
// 例子https://twitter.com/chonkyanimalx/status/1595834168000204800 // 例子https://twitter.com/chonkyanimalx/status/1595834168000204800
async twitter(e) { async twitter(e) {
// 配置参数及解析 // 配置参数及解析
@ -358,7 +358,7 @@ export class tools extends plugin {
expansions: ["entities.mentions.username", "attachments.media_keys"], expansions: ["entities.mentions.username", "attachments.media_keys"],
}) })
.then(resp => { .then(resp => {
e.reply(`识别:腿忒学习版,${resp.data.text}`); e.reply(`识别:小蓝鸟学习版,${resp.data.text}`);
const downloadPath = `${this.defaultPath}${this.e.group_id || this.e.user_id}`; const downloadPath = `${this.defaultPath}${this.e.group_id || this.e.user_id}`;
// 创建文件夹(如果没有过这个群) // 创建文件夹(如果没有过这个群)
if (!fs.existsSync(downloadPath)) { if (!fs.existsSync(downloadPath)) {

View File

@ -50,7 +50,7 @@
title: "bilibili/b23" title: "bilibili/b23"
desc: 哔哩哔哩分享实时下载 desc: 哔哩哔哩分享实时下载
- icon: 推特 - icon: 推特
title: "twitter" title: "小蓝鸟"
desc: 推特学习版分享实时下载 desc: 推特学习版分享实时下载
- icon: acfun - icon: acfun
title: "acfun" title: "acfun"

View File

@ -27,7 +27,7 @@ export function supportGuoba() {
{ {
field: "tools.proxyAddr", field: "tools.proxyAddr",
label: "魔法地址", label: "魔法地址",
bottomHelpMessage: "tiktok/twitter等要使用魔法时需要填写", bottomHelpMessage: "tiktok/小蓝鸟等要使用魔法时需要填写",
component: "Input", component: "Input",
required: false, required: false,
componentProps: { componentProps: {
@ -37,7 +37,7 @@ export function supportGuoba() {
{ {
field: "tools.proxyPort", field: "tools.proxyPort",
label: "魔法端口", label: "魔法端口",
bottomHelpMessage: "tiktok/twitter等要使用魔法时需要填写", bottomHelpMessage: "tiktok/小蓝鸟等要使用魔法时需要填写",
component: "Input", component: "Input",
required: false, required: false,
componentProps: { componentProps: {