Comments (6)
人机一体会造成严重的递归问题,Koishi v3 时代有不少使用者因为此问题导致机器人无限发送消息并最终被平台限流。Koishi 目前暂不支持人机一体。
from koishi.
问题不是人机一体,而是同一个账号在别的客户端发送的信息无法被koishi处理。即使会产生递归问题,加一个可选择开关也比直接return强,现在的实现导致一些功能从根本上无法实现。
from koishi.
同一个账号在别的客户端发送的信息无法被koishi处理
「人机一体」的定义就是「同一个账号在别的客户端发送的信息被 Bot 处理」啊。
加开关我觉得是可以的,等等看其他人的意见。不过除了递归问题以外,人机一体还会遇到其他许多问题,例如权限判断和消息统计等等问题。允许人机一体会导致现有的不少插件行为出现变化。
from koishi.
现在的实现导致一些功能从根本上无法实现
可以说说你的需求。如果合理的话可以加开关。
from koishi.
可以说说你的需求。如果合理的话可以加开关。
需要做消息日志,包括机器人发送的消息也需要存起来,并且日志和实际业务不在同一台机器,不使用同一套代码
from koishi.
那你应当使用 message 事件而非 middleware。
middleware 会被截断,就算不考虑是否是自身消息也不应该使用。
- 我要接收所有消息:on('message')
- 我要对 部分 消息做处理:middleware
from koishi.
Related Issues (20)
- Feature: Schema.string() 添加代码编辑器的 role
- Bug: Schema.array() 的`添加项目`按钮行为不正常,在特定场景不可用等
- Bug(Schema): Computed with Union Not Showing Branches Correctly HOT 2
- Bug: help 指令在遇到 .platform 或其他情况下回复错误
- Bug: 在使用指令管理 改变一些层级后,指令管理选项消失 HOT 2
- feat(core): parser[number]: support delimiters in number
- Bug: 使用adapter-satori的机器人会出现i18n错误 HOT 1
- adapter-qq是否能增加支持markdown模板和原生markdown?
- 云服务器如何公网连接控制台 HOT 2
- Bug(schemastery-vue): Schema.dict添加项目的体验优化 HOT 1
- Bug: Cannot find module '@cordisjs/server'
- Bug: adapter-satori接入chronocat,引用消息的session中quote属性缺失。
- Bug: h.transform 不会处理命中元素的嵌套元素 HOT 1
- Bug: What happen HOT 1
- Feature: 指令参数类型增加非负整数 HOT 3
- Bug: 当指令参数的image是某个元素的子元素,会提示参数输入无效
- Bug: 重载 koishi-plugin-puppeteer出现报错
- Bug: 异步消息的原子性及有序性 HOT 3
- Bug: 插件市场新添加的插件没有在插件配置中显示 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koishi.