discussion:在线时长实现与移除的讨论 #1240
Closed
kenichiLyon
started this conversation in
General
Replies: 2 comments
-
建议连指令计数和群组计数一起全砍了 |
Beta Was this translation helpful? Give feedback.
0 replies
-
sealdice/sealdice-ui#259 is closed,so it is done |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
follow up #1232 & sealdice/sealdice-ui#259
目前存在两条路线的争议。故在此讨论,希望获得统一意见
个人认为,在线时长对于用户帮助不大,移除后理应不影响用户使用。
如果实现,的确方便用户查看掉线时间排障,但因为协议端不存在对应接口能直接取到数据来显示,因此我个人想出的实现路径是需要 fetch 协议端 bot- status 相关接口后再与当前时间相减得出在线时长,再由前端展示。
那么就延伸出两个问题,这部分在 ui 内完成是否是合适的,如果不合适,那么要考虑在 core 仓库哪个部分实现比较合适的问题。
个人目前认为是在 adapter 部分实现合适些,但基于 core 仓库历史遗留的例如
platform-gocq-adapter.go
这类 qq 平台的 adapter 源码可读性不强且修改可能会造成不可预料的 bug,这似乎不妥当。那么在其他部分可以实现吗?大概的问题就在上面了。欢迎大家来讨论
CC @sealdice/core-team
Beta Was this translation helpful? Give feedback.
All reactions