早柚核心适配器
根据论坛教程进行koishi的启动: https://forum.koishi.xyz/t/topic/810
手动安装core: https://docs.sayu-bot.com/Started/InstallCore.html
手动启动core: https://docs.sayu-bot.com/Started/StartCore.html
在koishi的 插件市场
搜索 gscore adapter 并安装
进入 插件配置
配置并启动该插件
早柚核心适配器
根据论坛教程进行koishi的启动: https://forum.koishi.xyz/t/topic/810
手动安装core: https://docs.sayu-bot.com/Started/InstallCore.html
手动启动core: https://docs.sayu-bot.com/Started/StartCore.html
在koishi的 插件市场
搜索 gscore adapter 并安装
进入 插件配置
配置并启动该插件
官方QQ机器人平台将机器人主动发送的消息和被动接收后回复的消息区分开,并对机器人每天发送的主动消息数量进行了严格的限制。而GSCore经由本插件发送出的消息似乎都被视为了主动消息,即使它是为了回复接收的消息而发的。如果机器人每天主动消息达到上限后便会有如下的报错:
2024-01-05 15:46:28 [I] gscore-adapter 与[gsuid-core]成功连接! Bot_ID: koishi
2024-01-05 15:46:38 [I] gscore-adapter Element { type: 'text', attrs: { content: 'core刷新插件列表' }, children: [] } 0 [ Element { type: 'text', attrs: { content: 'core刷新插件列表' }, children: [] } ]
2024-01-05 15:46:38 [I] gscore-adapter Session { id: 13, event: { selfId: 'selfId', platform: 'qqguild', timestamp: 1704440796000, _type: 'qq', _data: { op: 0, s: 3, t: 'DIRECT_MESSAGE_CREATE', id: 'DIRECT_MESSAGE_CREATE:id', d: { author: { avatar: 'avatar', id: 'userid', username: 'username' }, channel_id: 'channel_id', content: 'core刷新插件列表', direct_message: true, guild_id: 'guild_id', id: 'id', member: { joined_at: '2024-01-03T10:24:56+08:00' }, seq: 121, seq_in_channel: '121', src_guild_id: 'src_guild_id', timestamp: '2024-01-05T15:46:36+08:00' } }, type: 'message-created', message: { messageId: 'messageId', id: 'id', content: 'core刷新插件列表', elements: [ Element { type: 'text', attrs: { content: 'core刷新插件列表' }, children: [] } ] }, user: { id: 'id', name: 'name', isBot: undefined, avatar: 'avatar' }, guild: { id: 'guildid' }, channel: { id: 'channelid', type: 1 } }, locales: [], user: undefined, channel: undefined, guild: undefined, permissions: [], scope: undefined, response: undefined, _stripped: { hasAt: false, content: 'core刷新插件列表', appel: false, atSelf: false, prefix: '' }, _queuedTasks: [], _queuedTimeout: undefined }
2024-01-05 15:46:39 [I] gscore-adapter {"bot_id":"qqguild","bot_self_id":"bot_self_id","msg_id":"msg_id","target_type":"channel","target_id":"target_id","content":[{"type":"text","data":"刷新成功! 刷新插件!"},{"type":"group","data":"data"}]}
2024-01-05 15:46:39 [I] gscore-adapter { bot_id: 'qqguild', bot_self_id: 'bot_self_id', msg_id: 'msg_id', target_type: 'channel', target_id: 'target_id', content: [ { type: 'text', data: '刷新成功! 刷新插件!' }, { type: 'group', data: 'data' } ] }
2024-01-05 15:46:39 [E] gscore-adapter Unknown message type: group
2024-01-05 15:46:39 [I] gscore-adapter [ Element { type: 'text', attrs: { content: '刷新成功! 刷新插件!' }, children: [] } ]
2024-01-05 15:46:39 [E] qq AxiosError: Request failed with status code 500
at settle (/home/bill/bots/koishi/data/instances/default/node_modules/axios/dist/node/axios.cjs:1967:12)
at IncomingMessage.handleStreamEnd (/home/bill/bots/koishi/data/instances/default/node_modules/axios/dist/node/axios.cjs:3062:11)
at IncomingMessage.emit (node:events:523:35)
at endReadableNT (node:internal/streams/readable:1367:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2024-01-05 15:46:39 [E] qq AxiosError: Request failed with status code 500
at request (/home/bill/bots/koishi/data/instances/default/node_modules/cordis-axios/lib/index.js:153:21)
at http (/home/bill/bots/koishi/data/instances/default/node_modules/cordis-axios/lib/index.js:172:30)
at _Quester.post (/home/bill/bots/koishi/data/instances/default/node_modules/cordis-axios/lib/index.js:220:16)
at _QQGuildMessageEncoder.flush (/home/bill/bots/koishi/data/instances/default/node_modules/@satorijs/adapter-qq/lib/index.js:806:33)
at _QQGuildMessageEncoder.send (/home/bill/bots/koishi/data/instances/default/node_modules/@satorijs/core/lib/index.cjs:578:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _QQGuildBot.sendMessage (/home/bill/bots/koishi/data/instances/default/node_modules/@satorijs/core/lib/index.cjs:339:22)
2024-01-05 15:46:39 [E] qq [response] { code: 304049, message: 'push dm message reach limit' }
2024-01-05 15:46:39 [W] app TypeError: Cannot read properties of undefined (reading 'id')
at _QQGuildMessageEncoder.flush (/home/bill/bots/koishi/data/instances/default/node_modules/@satorijs/adapter-qq/lib/index.js:837:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _QQGuildMessageEncoder.send (/home/bill/bots/koishi/data/instances/default/node_modules/@satorijs/core/lib/index.cjs:578:5)
at async _QQGuildBot.sendMessage (/home/bill/bots/koishi/data/instances/default/node_modules/@satorijs/core/lib/index.cjs:339:22)
不知道有没有什么解决办法,腾讯的限制太蛋疼了(哭
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.