kotori-bot
Advanced tools
+9
-3
@@ -9,11 +9,17 @@ "use strict"; | ||
| const fs_1 = require("fs"); | ||
| const path_1 = require("path"); | ||
| const program = (0, cac_1.default)(); | ||
| const pkg = JSON.parse((0, fs_1.readFileSync)(`${__dirname}/../package.json`).toString()); | ||
| program.version(pkg.verion, '-v, --version'); | ||
| program.help(); | ||
| program | ||
| .command('') | ||
| .option('--dir [path]', 'Set running root dir of program') | ||
| .option('-D, --dir [path]', 'Set running root dir of program', { | ||
| default: '' | ||
| }) | ||
| .option('-M, --mode [name]', 'Set running mode of program,build or dev', { | ||
| default: 'build' | ||
| }) | ||
| .action((options) => { | ||
| loader_1.Logger.info(options); | ||
| new loader_1.Loader({ mode: 'build' }).run(); | ||
| new loader_1.Loader({ mode: options.mode, dir: (0, path_1.resolve)(process.cwd(), options.dir) }).run(); | ||
| }); | ||
@@ -20,0 +26,0 @@ program |
+0
-17
@@ -21,19 +21,2 @@ "use strict"; | ||
| __exportStar(require("@kotori-bot/loader"), exports); | ||
| // const ctx = Container.get(); | ||
| // namespace KotoriSpace { | ||
| // /* Core Class */ | ||
| // export const { Config, baseDir } = ctx; | ||
| // /* Events Class */ | ||
| // export const { on, once, off, offAll, emit } = ctx; | ||
| // /* Modules Class */ | ||
| // export const { module, delcache } = ctx; | ||
| // /* Message Class */ | ||
| // export const { midware, command, regexp, boardcast, notify } = ctx; | ||
| // /* Locale Module */ | ||
| // export const { locale, uselang, setlang } = ctx; | ||
| // /* Logger Module */ | ||
| // export const { logger } = ctx; | ||
| // /* Fetch */ | ||
| // export const { http } = ctx; | ||
| // } | ||
| exports.Kotori = new Proxy(core_1.Container.getMixin(), { | ||
@@ -40,0 +23,0 @@ get: (_, prop) => { |
+3
-3
| { | ||
| "name": "kotori-bot", | ||
| "version": "v1.2.0", | ||
| "version": "1.3.0", | ||
| "description": "ChatBot Framework Base For NodeJS And TypeScript", | ||
@@ -36,4 +36,4 @@ "main": "lib/index.js", | ||
| "commander": "^12.0.0", | ||
| "@kotori-bot/core": "^v1.2.0", | ||
| "@kotori-bot/loader": "^v1.3.0" | ||
| "@kotori-bot/loader": "^1.4.0", | ||
| "@kotori-bot/core": "^1.3.0" | ||
| }, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
+22
-15
| <div align="center"> | ||
| <img src="https://kotori.js.org/favicon.ico" width="200px" height="200px" alt="logo"/> | ||
| <img src="https://kotori.js.org/favicon.svg" width="200px" height="200px" alt="logo"/> | ||
| # 小鳥 · KotoriBot | ||
| [使用指南](https://kotori.js.org/guide/) | ||
| [开发指南](https://kotori.js.org/develop/) | ||
| [接口文档](https://kotori.js.org/api/) | ||
| [入门教程](https://kotori.js.org/base/) | ||
| [开发指南](https://kotori.js.org/guide/) | ||
| [接口参考](https://kotori.js.org/api/) | ||
| [](https://github.com/kotorijs/kotori/actions/workflows/build.yml)       | ||
| [](https://github.com/kotorijs/kotori/actions/workflows/build.yml) | ||
|  | ||
|  | ||
|  | ||
|  | ||
| [](https://wakatime.com/badge/user/018dc603-712a-4205-a226-d4c9ccd0d02b/project/018dc605-aa92-43d3-b2a7-ed9829c0212e) | ||
| <!--  --> | ||
@@ -16,7 +22,7 @@ </div> | ||
| kotori 是一个**跨平台、解耦合、现代化**于一体的聊天机器人框架,运行于 NodeJS 环境并使用 TypeScript 语言开发。 | ||
| kotori 是一个**跨平台、解耦合、现代化**于一体的聊天机器人框架,运行于 Node.js 环境,使用 TypeScript 语言开发。 | ||
| --- | ||
| ## Summary | ||
| ## 🚀 Summary | ||
@@ -31,8 +37,8 @@ 「Kotori」是一个罗马字,在日语中是「ことり」(小鳥)的意思,发音为 `/kotoɾʲi‾/` <Voice />,该名字取自于 [Key 公式](http://key.visualarts.gr.jp/) 的游戏 [《Rewrite》](https://bgm.tv/subject/4022) 及其衍生作品中的主要女性角色之一的 [神户小鸟](https://bgm.tv/character/12063) (神戸(かんべ) 小鳥(ことり))。 | ||
| - **解耦合** | ||
| 对底层事件封装实现核心功能,减少代码冗余与复杂度,提升开发效率 | ||
| 基于控制反转(IOC)与面向切面编程(AOP)思想,减少代码冗余与复杂度 | ||
| - **现代化** | ||
| 使用现代化的 ECMAScript 语法规范与强大的 TypeScript 类型检查 | ||
| 使用现代化的 ECMAScript 语法规范与强大的 TypeScript 类型支持 | ||
| ### Supports | ||
| ### 🧊 Supports | ||
@@ -44,3 +50,5 @@ #### Platform | ||
| - CMD 命令行 | ||
| 即将支持: | ||
| 即将支持: | ||
| - Telegram | ||
@@ -52,12 +60,11 @@ - Kook/开黑啦 | ||
| #### Database(待支持) | ||
| #### Data | ||
| - Memory | ||
| - File | ||
| - Sqlite | ||
| - Mysql | ||
| --- | ||
| ## Reference | ||
| ## 📜 Reference | ||
| - [Kotori Docs](https://kotori.js.org/) |
-19
| global: | ||
| lang: en_US | ||
| command-prefix: / | ||
| dirs: | ||
| - ./node_modules/ | ||
| - ./node_modules/@kotori-bot/ | ||
| adapter: | ||
| cmd-test: | ||
| extends: cmd | ||
| master: 2333 | ||
| nickname: Kotarou | ||
| age: 18 | ||
| sex: male | ||
| self-id: 720 | ||
| plugin: | ||
| menu: | ||
| content: test menu |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
67
11.67%0
-100%41565
-1.13%12
-7.69%82
-11.83%Updated
Updated