Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

qq personal group bot

License

NotificationsYou must be signed in to change notification settings

lc-cn/52bot

Repository files navigation

1. 快速上手

  • 安装 & 初始化
# 1. 安装依赖框架yarn add 52bot# or pnpm install 52bot# 2. 安装适配器(目前已支持qq官方机器人和icqq)yarn add @52bot/qq# 如果你需要使用 icqq , 可安装 @52bot/icqq# 2. 初始化配置文件npx 52bot init -m dev
  • 填写配置打开生成在根目录的bot.config.ts 文件,填入相关环境变量
import{defineConfig}from'52bot';importqqAdapterfrom'@52bot/qq'// 更多适配器请访问官方文档import*aspathfrom'path';exportdefaultdefineConfig(({ mode,zhinSecret,zhinDingTalkSecret,zhinDiscordSecret})=>{return{logLevel:'info',adapters:[qqAdapter],bots:[{adapter:'qq',// 使用qq适配器appid:'123456789',// qq机器人appIdsecret:'asdflkjasiodf',// qq机器人secretgroup:true,// 是否支持群聊private:true,// 是否支持私聊public:true// 是否公域机器人},],pluginDirs:[path.resolve(__dirname,'plugins')// 本地插件文件夹路径],plugins:['commandParser',// 指令解析插件mode==='dev'&&'hmr',// 开发环境热更插件"setup",// setup语法支持插件// ... 你自己的的插件].filter(Boolean),};})
  • 目前已内置有commandParserhmrechopluginManager 四个插件,其他插件请关注官方仓库和社区插件

  • 启动

  • 注意:首次启动会为你生成对应适配器的默认配置文件,需要您完成配置后再次启动

npx 52bot -m dev

About

qq personal group bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp