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

[Enhancement]多服消息互通 #21

Closed
Eternal130 opened this issue Oct 30, 2024 · 6 comments
Closed

[Enhancement]多服消息互通 #21

Eternal130 opened this issue Oct 30, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@Eternal130
Copy link

功能建议

现在只能做到服和q群消息互通, 但是如果两个服分别挂了鹊桥, 彼此消息是不互通的, 希望能让与同一个q群互通消息的服务器彼此也能互通消息

额外信息(可选)

No response

@Eternal130 Eternal130 added the enhancement New feature or request label Oct 30, 2024
@Eternal130 Eternal130 changed the title [Enhancement]群服消息互通 [Enhancement]多服消息互通 Oct 30, 2024
Copy link
Owner

可以用NoneBot2的minecraft适配器编写插件实现,鹊桥只负责将消息广播到服务器内

@17TheWord
Copy link
Owner

你的实现端用的是哪个项目?nonebot-plugin-mcqq 还是云崽的 mc-plugin?如果是 nonebot-plugin-mcqq,可以考虑在项目内直接添加这样的功能,如果是云崽的 mc-plugin,可以去催更!

@Eternal130
Copy link
Author

你的实现端用的是哪个项目?nonebot-plugin-mcqq 还是云崽的 mc-plugin?如果是 nonebot-plugin-mcqq,可以考虑在项目内直接添加这样的功能,如果是云崽的 mc-plugin,可以去催更!

nonebot-plugin-mcqq, 过几天就去加功能

@17TheWord
Copy link
Owner

临时的方案你可以使用

@temp.handle()
async def _(bot: Bot, event: MessageEvent):
  bots = get_bots()
  msg = event.get_message()
  for temp_bot in bots:
    if bot.self_id != temp_bot.self_id:
      await bot.send_msg(msg)

@Eternal130
Copy link
Author

能互通了, 虽然鹊桥的前缀一直取消不掉,无论如何都剩个[]

Copy link
Owner

这个本意是用来做一个自定义前缀的,你可以设置为自己的服务器名或另一个服务器的名字。如果有需求,可以在下个版本也设置为自定义。

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