Skip to content

Commit

Permalink
release: v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Feb 6, 2024
1 parent 35097eb commit fe1ebbb
Show file tree
Hide file tree
Showing 34 changed files with 69 additions and 47 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# [1.2.0](https://github.com/kotorijs/kotori/compare/v1.1.0...v1.2.0) (2024-02-06)


### Bug Fixes

* module load logic ([8b4c508](https://github.com/kotorijs/kotori/commit/8b4c508e24315f167ed5cd02d505134586de7259))


### Features

* events class move to @kotori-bot/tools ([a4e016d](https://github.com/kotorijs/kotori/commit/a4e016d9e898932af8017f0251a5a1d951ab2a7b))
* new @kotori-bot/i18n ([b2bf016](https://github.com/kotorijs/kotori/commit/b2bf0161f10b2dec494ca3d109fc36ff853d8377))
* new command parse ([85f1ea0](https://github.com/kotorijs/kotori/commit/85f1ea031073f636c2e0374e7bce979d91d3648c))
* new context ([4843569](https://github.com/kotorijs/kotori/commit/4843569e9242aba4c1af48c0ccf6f532e229c392))
* new logger ([f2cfd06](https://github.com/kotorijs/kotori/commit/f2cfd067bbd20e70eed00d6e8d662b15b7baf1a8))
* qqadapter send image ([be9e966](https://github.com/kotorijs/kotori/commit/be9e966c8c44e0057a8a22110c979b2502d753c8))
* service, cache, module config ([8a347ec](https://github.com/kotorijs/kotori/commit/8a347ec0b8c4225914847009d17573c6dadfc6a3))
* service, cache, module config ([83bf83e](https://github.com/kotorijs/kotori/commit/83bf83eba328ac55adcebf2b4387ec5277c2c385))
* service, cache, module config ([d42ec69](https://github.com/kotorijs/kotori/commit/d42ec69cf53450ffc776e1aaf28a360da758f389))



# [1.1.0](https://github.com/kotorijs/kotori/compare/v1.0.0...v1.1.0) (2023-12-31)


Expand Down
2 changes: 1 addition & 1 deletion modules/adapter-cmd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/kotori-plugin-adapter-cmd",
"version": "1.0.0",
"version": "v1.1.0",
"description": "Adapter For Cmd",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/adapter-onebot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/kotori-plugin-adapter-onebot",
"version": "1.1.1",
"version": "v1.2.0",
"description": "Adapter For Onebot (go-cqhttp)",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/adapter-qq/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/kotori-plugin-adapter-qq",
"version": "1.0.0",
"version": "v1.1.0",
"description": "Adapter For QQ Base On Tencent Api",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/bangumi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-bangumi",
"version": "1.1.1",
"version": "v1.2.0",
"description": "bangumi plugin",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/bangumi/src/http.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Kotori from 'kotori-bot';

const headers = {
'user-agent': 'czy0729/Bangumi/6.4.0 (Android) (http://github.com/czy0729/Bangumi)',
'user-agent': 'czy0729/Bangumi/6.4.0 (Android) (http://github.com/czy0729/Bangumi)'
};

export const http: typeof Kotori.http.get = async (url, params) =>
Expand Down
2 changes: 1 addition & 1 deletion modules/better-join/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-better-join",
"version": "1.0.0",
"version": "v1.1.0",
"description": "better join tips,before close manger's join welcome",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/bilibili/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-bilibili",
"version": "1.1.0",
"version": "v1.2.0",
"description": "bilibili plugin",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/kotori-plugin-core",
"version": "1.1.1",
"version": "v1.2.0",
"description": "core plugin",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/github/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-github",
"version": "1.1.0",
"version": "v1.2.0",
"description": "github repository searching",
"main": "lib/index.js",
"scripts": {
Expand Down
14 changes: 7 additions & 7 deletions modules/github/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ const githubSchema = Tsu.Union([
description: Tsu.String().default('corei18n.template.empty'),
language: Tsu.String().default('corei18n.template.empty'),
owner: Tsu.Object({ login: Tsu.String().default('corei18n.template.empty') }).default({
login: 'corei18n.template.empty',
login: 'corei18n.template.empty'
}),
created_at: Tsu.String(),
updated_at: Tsu.String(),
pushed_at: Tsu.String(),
license: Tsu.Object({ name: Tsu.String().default('corei18n.template.empty') }).default({
name: 'corei18n.template.empty',
}),
name: 'corei18n.template.empty'
})
}),
Tsu.Object({}),
Tsu.Object({})
]);

export const lang = [__dirname, '../locales'];
Expand All @@ -34,11 +34,11 @@ export function main(ctx: Context) {
create: res.created_at || 'BOT_RESULT.EMPTY',
update: res.updated_at || 'BOT_RESULT.EMPTY',
push: res.pushed_at || 'BOT_RESULT.EMPTY',
license: res.license ? res.license.name || 'BOT_RESULT.EMPTY' : 'BOT_RESULT.EMPTY',
},
license: res.license ? res.license.name || 'BOT_RESULT.EMPTY' : 'BOT_RESULT.EMPTY'
}
]);
return session.el.image(
`https://opengraph.githubassets.com/c9f4179f4d560950b2355c82aa2b7750bffd945744f9b8ea3f93cc24779745a0/${res.full_name}`,
`https://opengraph.githubassets.com/c9f4179f4d560950b2355c82aa2b7750bffd945744f9b8ea3f93cc24779745a0/${res.full_name}`
);
});
}
2 changes: 1 addition & 1 deletion modules/goodnight/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-goodnight",
"version": "1.1.0",
"version": "v1.2.0",
"description": "And in case i don't see you,good afternoon,good evening,and good night!",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/goodnight/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default {
sleepTimeLess: 3,
sleepTimeLater: [1, 7],
sleepTimeLate: [23, 1],
sleepTimeNormal: [20, 23],
sleepTimeNormal: [20, 23]
};
2 changes: 1 addition & 1 deletion modules/grouper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-grouper",
"version": "1.1.0",
"version": "v1.2.0",
"description": "groups activity ranking and simple games!",
"main": "lib/index.js",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions modules/grouper/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export default {
guess: {
max: 1000,
min: 1,
range: 100,
},
range: 100
}
};
2 changes: 1 addition & 1 deletion modules/helper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/kotori-plugin-helper",
"version": "1.1.0",
"version": "v1.2.0",
"description": "helper plugin",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/hitokotos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-hitokotos",
"version": "1.1.0",
"version": "v1.2.0",
"description": "Seventeen kind of different sentences",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/i18n-command/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/kotori-plugin-i18n-command",
"version": "1.1.0",
"version": "v1.2.0",
"description": "i18n for command",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/mediawiki/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-mediawiki",
"version": "1.1.0",
"version": "v1.2.0",
"description": "mediawiki search tool",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/menu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/kotori-plugin-menu",
"version": "1.0.0",
"version": "v1.1.0",
"description": "menu plugin",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/music/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-music",
"version": "1.1.0",
"version": "v1.2.0",
"description": "music plugin",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/newnew/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-penis",
"version": "1.1.0",
"version": "v1.2.0",
"description": "查看今日牛牛的长度和排行",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/nmsl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-nmsl",
"version": "2.0.0",
"version": "v2.1.0",
"description": "孙笑川在线帮你翻译成抽象话",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/nmsl/src/nmsl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -970,5 +970,5 @@ export default {
: '🍎',
孙笑川: '孙🐶',
透你妈: 'tony🐎',
蚊子: '🦟',
蚊子: '🦟'
};
2 changes: 1 addition & 1 deletion modules/random-img/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-randomimg",
"version": "1.1.0",
"version": "v1.2.0",
"description": "Random imgs base for Core",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion modules/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-testing",
"version": "1.1.0",
"version": "v1.2.0",
"description": "testing plugin",
"main": "lib/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions modules/weather/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-plugin-weather",
"version": "1.0.0",
"version": "v1.1.0",
"description": "weather plugin",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -32,4 +32,4 @@
]
}
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kotori-bot/root",
"description": "ChatBot Framework",
"version": "1.1.0",
"version": "v1.2.0",
"private": true,
"scripts": {
"kotori": "pnpm --filter kotori-bot",
Expand Down Expand Up @@ -50,4 +50,4 @@
"engines": {
"node": ">=17.9.0"
}
}
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/core",
"version": "1.1.0",
"version": "v1.2.0",
"description": "Kotori Core",
"main": "lib/index.js",
"license": "GPL-3.0",
Expand Down Expand Up @@ -30,4 +30,4 @@
"minimist": "^1.2.8",
"tsukiko": "^1.2.1"
}
}
}
4 changes: 2 additions & 2 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/i18n",
"version": "1.1.2",
"version": "v1.2.0",
"description": "i18n For Kotori",
"main": "dist/index.js",
"browser": "dist/common.js",
Expand Down Expand Up @@ -28,4 +28,4 @@
"url": "git+https://github.com/kotorijs/kotori.git"
},
"homepage": "https://kotori.js.org"
}
}
2 changes: 1 addition & 1 deletion packages/kotori/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kotori-bot",
"version": "1.1.0",
"version": "v1.2.0",
"description": "ChatBot Framework Base For NodeJS And TypeScript",
"main": "lib/index.js",
"license": "GPL-3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/loader",
"version": "1.2.0",
"version": "v1.3.0",
"description": "Loader For KotoriBot",
"license": "GPL-3.0",
"main": "lib/index.js",
Expand All @@ -27,4 +27,4 @@
"url": "git+https://github.com/kotorijs/kotori.git"
},
"homepage": "https://kotori.js.org"
}
}
4 changes: 2 additions & 2 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/logger",
"version": "1.0.0",
"version": "v1.1.0",
"description": "Logger For Kotori",
"main": "lib/index.js",
"license": "GPL-3.0",
Expand Down Expand Up @@ -31,4 +31,4 @@
"url": "git+https://github.com/kotorijs/kotori.git"
},
"homepage": "https://kotori.js.org"
}
}
4 changes: 2 additions & 2 deletions packages/tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kotori-bot/tools",
"version": "1.1.0",
"version": "v1.2.0",
"description": "Tools For Kotori",
"main": "dist/index.js",
"browser": "dist/exports/common.js",
Expand Down Expand Up @@ -29,4 +29,4 @@
"url": "git+https://github.com/kotorijs/kotori.git"
},
"homepage": "https://kotori.js.org"
}
}

0 comments on commit fe1ebbb

Please sign in to comment.