Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持其他平台 #24

Closed
2 of 3 tasks
Dianliang233 opened this issue Jun 5, 2021 · 9 comments
Closed
2 of 3 tasks

支持其他平台 #24

Dianliang233 opened this issue Jun 5, 2021 · 9 comments
Labels
enhancement New feature or request
Milestone

Comments

@Dianliang233
Copy link
Member

Dianliang233 commented Jun 5, 2021

v4 计划的一部分。

机器人将支持其他聊天平台。

参考:使用 Node 的 koishi 使用了所谓 adapter,即消息到各个平台的转换器。这需要把所有用 Graia 包装的消息转换成其他平台(如 discord.py)。

小可计划在 v4 中支持:

@Dianliang233 Dianliang233 added the enhancement New feature or request label Jun 5, 2021
@Dianliang233 Dianliang233 added this to the v4 milestone Jun 5, 2021
@OasisAkari
Copy link
Member

mcdr的支持可能会是 公开一个网络调用api,然后mc服务器通过请求api得到消息

@OasisAkari
Copy link
Member

其他平台的支持原理应该并不像koishi的adapter一样,因为我并不打算再写几个轮子来支持那些平台

@OasisAkari
Copy link
Member

我现在在想要不要自己造轮子了(捂脸

现有的轮子都要阻塞异步,统一调不起来

@OasisAkari
Copy link
Member

虽然我也可以开子进程来分别运行各个bot

不知道会不会遇到什么冲突的情况

@OasisAkari
Copy link
Member

这几天先把子进程的实现写完先吧

写完就差不多了

@OasisAkari
Copy link
Member

成功实现了discord的适配,其余的将于近日完成

@OasisAkari
Copy link
Member

telecom的python框架没有异步版的(惊恐

现行框架下的大部分代码都是基于异步进行的,那telegram暂时无法支持了,需要等待telegram的框架支持

@OasisAkari
Copy link
Member

如果要搭建可以交互的api来支持mcdr的话...不知道基于什么东西搭建好,机器人有可能会把消息拆成几次发送..

@Dianliang233
Copy link
Member Author

https://github.com/aiogram/aiogram

不知道行不行(

DoroWolf pushed a commit that referenced this issue Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants