Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kotori-bot

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kotori-bot - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

12

lib/cli.js

@@ -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

@@ -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) => {

{
"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": {

<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/)
[![Build](https://github.com/kotorijs/kotori/actions/workflows/build.yml/badge.svg)](https://github.com/kotorijs/kotori/actions/workflows/build.yml) ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/biyuehu/biyuehu) ![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/t/kotorijs/kotori/master) ![GitHub contributors](https://img.shields.io/github/contributors/biyuehu/kotori-bot) ![GitHub](https://img.shields.io/github/license/biyuehu/kotori-bot?color=deepgreen) ![npm](https://img.shields.io/npm/v/kotori-bot) ![GitHub Repo stars](https://img.shields.io/github/stars/biyuehu/kotori-bot?style=social)
[![Build](https://github.com/kotorijs/kotori/actions/workflows/build.yml/badge.svg)](https://github.com/kotorijs/kotori/actions/workflows/build.yml)
![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/biyuehu/biyuehu)
![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/t/kotorijs/kotori/master)
![GitHub](https://img.shields.io/github/license/biyuehu/kotori-bot?color=deepgreen)
![npm](https://img.shields.io/npm/v/kotori-bot)
[![wakatime](https://wakatime.com/badge/user/018dc603-712a-4205-a226-d4c9ccd0d02b/project/018dc605-aa92-43d3-b2a7-ed9829c0212e.svg)](https://wakatime.com/badge/user/018dc603-712a-4205-a226-d4c9ccd0d02b/project/018dc605-aa92-43d3-b2a7-ed9829c0212e)
<!-- ![GitHub contributors](https://img.shields.io/github/contributors/biyuehu/kotori-bot) -->

@@ -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/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc