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/功能请求] 添加QQ机器人对变量的支持 #108

Open
2 tasks done
Pau1am opened this issue Jun 25, 2023 · 4 comments
Open
2 tasks done

[Enhancement/功能请求] 添加QQ机器人对变量的支持 #108

Pau1am opened this issue Jun 25, 2023 · 4 comments
Labels
Bug(漏洞) Something isn't working(部分功能未正常工作) Enhancement(功能请求) New feature or request(新功能请求)

Comments

@Pau1am
Copy link

Pau1am commented Jun 25, 2023

Checks/检查

  • I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
  • I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。

Description/描述

目前已知Mod能够透过添加自定义指令,使得玩家可利用QQ群向服务器发出指令(例如!say、!list 等..),请问能否加入对更多变量的支持?例如玩家可以在群众输入!whitelist add [player]来获取服务器白名单。

@Pau1am
Copy link
Author

Pau1am commented Jun 25, 2023

我尝试使用Mod本身提供的“%"变量,结果发现该变量貌似只能识别文本信息。
image
image

@Pau1am
Copy link
Author

Pau1am commented Jun 25, 2023

同时发现一个问题,存在相同字段的自定义指令会造成冲突。
假设cmds文件中存在两个指令分别为 !whitelist_list 和 !list ,当我在QQ群中输入!whitelist_list的时候,会同时触发两个指令

@cnlimiter cnlimiter added the Bug(漏洞) Something isn't working(部分功能未正常工作) label Jun 27, 2023
@cnlimiter
Copy link
Collaborator

我理一理思路,在准备修了

@cnlimiter cnlimiter added the Enhancement(功能请求) New feature or request(新功能请求) label Jul 2, 2023
@xia-mc
Copy link
Member

xia-mc commented Feb 22, 2024

同时发现一个问题,存在相同字段的自定义指令会造成冲突。 假设cmds文件中存在两个指令分别为 !whitelist_list 和 !list ,当我在QQ群中输入!whitelist_list的时候,会同时触发两个指令

@A0000Xz 修了。
演变理了半年多的思路

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug(漏洞) Something isn't working(部分功能未正常工作) Enhancement(功能请求) New feature or request(新功能请求)
Projects
None yet
Development

No branches or pull requests

3 participants