kotori-plugin-github 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +3 -3
- package/locales/en_US.json +4 -4
- package/locales/ja_JP.json +4 -4
- package/locales/zh_CN.json +4 -4
- package/locales/zh_TW.json +4 -4
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -21,12 +21,12 @@ const githubSchema = kotori_bot_1.Tsu.Union([
|
|
|
21
21
|
]);
|
|
22
22
|
exports.lang = [__dirname, '../locales'];
|
|
23
23
|
function main(ctx) {
|
|
24
|
-
ctx.command('github <repository> -
|
|
24
|
+
ctx.command('github <repository> - github.descr.github').action(async (data, session) => {
|
|
25
25
|
const res = githubSchema.parse(await ctx.http.get(`https://api.github.com/repos/${data.args[0]}`));
|
|
26
26
|
if (!('full_name' in res))
|
|
27
|
-
return ['
|
|
27
|
+
return ['github.msg.github.fail', { input: data.args[0] }];
|
|
28
28
|
session.quick([
|
|
29
|
-
'
|
|
29
|
+
'github.msg.github',
|
|
30
30
|
{
|
|
31
31
|
name: res.full_name || 'BOT_RESULT.EMPTY',
|
|
32
32
|
description: res.description || 'BOT_RESULT.EMPTY',
|
package/locales/en_US.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
2
|
+
"github.descr.github": "Query Github repository info",
|
|
3
|
+
"github.msg.github": "URL: %name%\nDescription: %description%\nLanguage: %language%\nOwner: %author%\nCreated: %create%\nLast updated: %update%\nLast push: %push%\nOpen source license: %license%",
|
|
4
|
+
"github.msg.github.image": "%image%",
|
|
5
|
+
"github.msg.github.fail": "Repository not found: %input%"
|
|
6
6
|
}
|
package/locales/ja_JP.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
2
|
+
"github.descr.github": "Githubリポジトリ情報を検索",
|
|
3
|
+
"github.msg.github": "アドレス:%name%\n説明:%description%\n言語:%language%\n所有者:%author%\n作成日時:%create%\n最終更新日時:%update%\n最終プッシュ日時:%push%\nオープンソースライセンス:%license%",
|
|
4
|
+
"github.msg.github.image": "%image%",
|
|
5
|
+
"github.msg.github.fail": "リポジトリが見つかりません:%input%"
|
|
6
6
|
}
|
package/locales/zh_CN.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
2
|
+
"github.descr.github": "查询Github仓库信息",
|
|
3
|
+
"github.msg.github": "地址:%name%\n描述:%description%\n语言:%language%\n所有者:%author%\n创建时间:\n %create%\n最后更新时间:%update%\n最后推送时间:%push%\n开源协议:%license%",
|
|
4
|
+
"github.msg.github.image": "%image%",
|
|
5
|
+
"github.msg.github.fail": "未找到仓库:%input%"
|
|
6
6
|
}
|
package/locales/zh_TW.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
2
|
+
"github.descr.github": "查詢Github倉庫信息",
|
|
3
|
+
"github.msg.github": "地址:%name%\n描述:%description%\n語言:%language%\n所有者:%author%\n創建時間:\n %create%\n最後更新時間:%update%\n最後推送時間:%push%\n開源協議:%license%",
|
|
4
|
+
"github.msg.github.image": "%image%",
|
|
5
|
+
"github.msg.github.fail": "未找到倉庫:%input%"
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kotori-plugin-github",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "github repository searching",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"author": "Hotaru <biyuehuya@gmail.com>",
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"kotori-bot": "^
|
|
20
|
+
"kotori-bot": "^1.3.0"
|
|
21
21
|
},
|
|
22
22
|
"kotori": {
|
|
23
23
|
"meta": {
|