![人性化的QQ机器人框架 | Koishi](https://assets.btwoa.com/cover035.png)
人性化的QQ机器人框架 | Koishi
Koishi基于TypeScript开发,支持主流聊天平台,可跨平台,社区生态丰富,开箱即用,及其人性化
体验
引用站外链接
在线控制台
Koishi
安装
引用站外链接
官方文档
Koishi
支持docker那肯定直接run啊
docker run -p 5140:5140 -e TZ=Asia/Shanghai --restart=always --name koishi koishijs/koishi
完成可访问 http://宿主机地址:5140
登录
安装插件gocqhttp并运行
配置adapter-onebot插件
填写selfid,启动显示无法登陆
推荐本地安装koishi,将device.json的protocol改为2(QQ手表端)
启动adapter-onebot扫码登录
然后将本地的device.json,session.token上传至服务器对应目录,重启adapter-onebot即可看到登录成功
在沙盒添加用户,发送help测试机器人功能是否正常
依赖
后续好多插件都依赖ffmpeg,所以提前安装下
宿主机安装
sudo apt-get install ffmpeg
容器安装
docker exec -it -u root koishi /bin/sh
apk update
apk add yasm
apk add ffmpeg
插件
插件市场
package.json
这是我的package.json,可供参考
package.json
{
"name": "@koishijs/boilerplate",
"version": "1.9.0",
"private": true,
"files": [
".env",
"koishi.yml"
],
"license": "AGPL-3.0",
"scripts": {
"start": "koishi start"
},
"dependencies": {
"@ifrank/koishi-plugin-xibao": "1.2.1",
"@koishijs/plugin-adapter-discord": "3.8.6",
"@koishijs/plugin-adapter-kook": "3.10.2",
"@koishijs/plugin-adapter-lark": "2.1.3",
"@koishijs/plugin-adapter-line": "1.1.1",
"@koishijs/plugin-adapter-matrix": "3.4.0",
"@koishijs/plugin-adapter-onebot": "5.7.4",
"@koishijs/plugin-adapter-telegram": "3.8.1",
"@koishijs/plugin-adapter-wecom": "1.0.0",
"@koishijs/plugin-admin": "1.4.0",
"@koishijs/plugin-analytics": "1.0.4",
"@koishijs/plugin-auth": "4.1.1",
"@koishijs/plugin-bind": "1.4.2",
"@koishijs/plugin-commands": "3.2.2",
"@koishijs/plugin-config": "2.3.1",
"@koishijs/plugin-console": "5.13.2",
"@koishijs/plugin-database-sqlite": "3.5.6",
"@koishijs/plugin-dataview": "2.3.1",
"@koishijs/plugin-explorer": "1.4.5",
"@koishijs/plugin-help": "2.3.0",
"@koishijs/plugin-hmr": "1.2.1",
"@koishijs/plugin-insight": "3.4.1",
"@koishijs/plugin-inspect": "1.1.2",
"@koishijs/plugin-locales": "2.4.0",
"@koishijs/plugin-logger": "2.3.2",
"@koishijs/plugin-market": "2.2.10",
"@koishijs/plugin-rate-limit": "1.3.3",
"@koishijs/plugin-sandbox": "3.1.10",
"@koishijs/plugin-status": "7.1.3",
"@misaka-bot/koishi-plugin-github-trending": "0.0.3",
"@rinkuto/koishi-plugin-pixiv": "1.1.7",
"koishi": "4.14.2",
"koishi-plugin-abbreviation": "1.0.0",
"koishi-plugin-assets-local": "3.1.0",
"koishi-plugin-bangumi": "1.0.0",
"koishi-plugin-color": "1.0.2",
"koishi-plugin-couplet": "1.1.0",
"koishi-plugin-crazy-thursday": "1.0.4",
"koishi-plugin-cron": "2.0.5",
"koishi-plugin-custom-welcome-message": "1.1.5",
"koishi-plugin-dailygames": "1.4.0",
"koishi-plugin-davinci-003": "6.1.1",
"koishi-plugin-desktop": "0.0.4",
"koishi-plugin-epic-get-free-game": "1.0.12",
"koishi-plugin-furbot": "1.0.1",
"koishi-plugin-gameinfo": "1.1.1",
"koishi-plugin-gameinfo-plus": "1.0.1",
"koishi-plugin-gamenews": "1.3.2",
"koishi-plugin-gamewallpaper-byripple": "1.0.1",
"koishi-plugin-gk-api": "0.0.1",
"koishi-plugin-gocqhttp": "3.8.0",
"koishi-plugin-gocqhttp-dev": "1.1.1-dev-0.1.0",
"koishi-plugin-hitokoto": "2.1.5",
"koishi-plugin-i-ching-joker": "1.0.1",
"koishi-plugin-imagify": "0.0.2",
"koishi-plugin-javbus": "1.0.9",
"koishi-plugin-jrrp": "1.1.1",
"koishi-plugin-markdown": "1.1.1",
"koishi-plugin-moebgm": "2.0.1",
"koishi-plugin-music": "2.2.2",
"koishi-plugin-news": "0.1.0",
"koishi-plugin-og": "1.1.1",
"koishi-plugin-puppeteer": "3.5.0",
"koishi-plugin-qrcode": "2.1.2",
"koishi-plugin-recall": "1.3.0",
"koishi-plugin-releasegame": "1.0.1",
"koishi-plugin-remake": "1.0.3",
"koishi-plugin-repeater": "1.0.1",
"koishi-plugin-screenshot": "1.0.4",
"koishi-plugin-seniverse-weather": "1.0.1",
"koishi-plugin-shindan-maker": "1.4.0",
"koishi-plugin-status-pro": "1.1.7",
"koishi-plugin-steam-trading": "1.2.6",
"koishi-plugin-tarot-divination": "1.0.0",
"koishi-plugin-tc-sst": "0.0.4",
"koishi-plugin-tencent-tts": "0.0.1",
"koishi-plugin-theme-vanilla": "1.0.6",
"koishi-plugin-today-in-history": "1.0.6",
"koishi-plugin-translator-baidu": "1.1.2",
"koishi-plugin-verifier": "1.1.1",
"koishi-plugin-whateat-pic": "1.1.4"
}
}
推荐
davinci-003
可接入openai(chatgpt-3.5 / chatgpt-4),预置四百多种人设
设置页
epic-get-free-game
获取Epic免费游戏资讯
gameinfo-plus
查询游戏国区史低
news
每日新闻播报
whateat-pic
图片版食谱
tarot-divination
塔罗牌占卜
crazy-thursday
随机获取疯狂星期四文案
太多实用好玩的插件就不一一列举了
- 感谢你的投喂
赞赏名单
你的支持是我前进路上不可或缺的动力
本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自放养平凡
评论 ()
TwikooValine