Git Product home page Git Product logo

Comments (10)

shigma avatar shigma commented on July 23, 2024

我会持续关注 mirai 的开发,不过就目前而言它的 http api 还没有完善到 cqhttp 的程度(要知道 coolq 本身的 api 已经是较少的了),所以短时间内可能并不会做 mirai 的支持。

from koishi.

undefined-moe avatar undefined-moe commented on July 23, 2024

Mirai-Go-cqhttp 已经有了较为完善的api。可考虑进行支持
除版本号相关操作异常外暂未发现其他问题。

from koishi.

shigma avatar shigma commented on July 23, 2024

@masnn 谢谢你的提醒!next 分支已经补充了 go-cqhttp 的相关接口,将在下个大版本实装对其的支持。

// go-cqhttp extension
export interface ImageInfo {
size?: number
filename?: string
url?: string
}
export interface VersionInfo {
goCqhttp?: boolean
runtimeVersion?: string
runtimeOs?: string
}
export interface GroupMessage {
messageId: number
realId: number
sender: SenderInfo
time: number
content: string
}
export interface ForwardMessage {
messages: {
sender: SenderInfo
time: number
content: string
}[]
}
export interface CQSender {
setGroupName (groupId: number, name: string): Promise<void>
setGroupNameAsync (groupId: number, name: string): Promise<void>
getGroupMsg (messageId: number): Promise<GroupMessage>
getForwardMsg (messageId: number): Promise<ForwardMessage>
sendGroupForwardMsg (groupId: number, messages: []): Promise<void>
sendGroupForwardMsgAsync (groupId: number, messages: []): Promise<void>
}

from koishi.

shigma avatar shigma commented on July 23, 2024

由于 mirai 官方已经删库跑路,加上 go-cqhttp 已经能够较好地契合现在的 koishi,现在决定短期内不考虑适配 mirai-http-api 或类似的接口。

from koishi.

UlyssesZh avatar UlyssesZh commented on July 23, 2024

Mirai 以及 mirai-http-api 现在正在积极维护. 是否可以考虑适配?

from koishi.

ilharp avatar ilharp commented on July 23, 2024

Mirai 以及 mirai-http-api 现在正在积极维护. 是否可以考虑适配?

上面已经有写:

go-cqhttp 已经能够较好地契合现在的 koishi。

你是遇到了某些场景下 mirai-http-api 比 go-cqhttp 更可用的情况吗?能否列举一下?

from koishi.

shigma avatar shigma commented on July 23, 2024

这个 issue 距离现在已经有两年多的时间了。如果你确实有此需求,我觉得可以新开一个 issue。

from koishi.

UlyssesZh avatar UlyssesZh commented on July 23, 2024

你是遇到了某些场景下 mirai-http-api 比 go-cqhttp 更可用的情况吗?能否列举一下?

我的 QQ 账号能用 mirai 登录而不能用 go-cqhttp 登录 (会提示密码错误或账号被冻结). 目前我的 workaround 是用 yyuueexxiinngg/onebot-kotlin.

虽然或许我再研究研究就能登录成功了, 但是 "go-cqhttp 能较好地契合 Koishi" 并不完全构成拒绝适配 Mirai 的理由, 文档中也指出 "在未来也可能出现其他面向 QQ 的适配器".

from koishi.

shigma avatar shigma commented on July 23, 2024

遵循开源的宗旨,我们永远欢迎任何人开发 Koishi 的适配器,例如 koishi-plugin-mirai 或 koishi-plugin-oicq。

from koishi.

H4M5TER avatar H4M5TER commented on July 23, 2024

目前没有 mirai http api 和 oicq 的适配的主要原因是没有多余的人力

密码错误或账号被冻结的问题目前确实有遇到,workaround就是从其他地方挪token过去

from koishi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.