Skip to content

`KiviBot` 的 TypeScript 插件开发模板,开箱即用

License

Notifications You must be signed in to change notification settings

GinirohikoCha/kivibot-plugin-template-ts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kivibot-plugin-template-ts

KiviBot 插件 TS 开发模板,开箱即用,近乎零配置。

特征

  • ✅ 预安装必要的开发依赖
  • 🔧 完备的 TS 编译配置
  • 🎨 简洁明了的模板代码
  • 💻 开发友好的调试方式(tsc + tsc-alias + concurrently
  • 🧪 可选配置的测试套件(ava

开发

使用 degit 克隆到本地进行开发

npx degit KiviBotLab/kivibot-plugin-template-ts ts-demo

如果你需要发布到 npm,请注意修改 package.json, license 的相关信息, test.mjs 用于编写测试,如果你不需要测试,可以自行删除。

然后删除 README 的上述内容,保留并修改以下内容即可。

xxx for KiviBot

npm-version dm

KiviBotxxx 插件。

安装

/plugin add xxx

启用

/plugin on xxx

使用

xxx

配置

编辑 框架目录/data/plugins/xxx/config.json 文件。

{
  // 触发命令
  "cmd": ""
}

然后使用以下命令重载插件生效。

/plugin reload xxx

About

`KiviBot` 的 TypeScript 插件开发模板,开箱即用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 88.1%
  • JavaScript 11.9%