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

[Bug]: ext.onNotCommandReceived 触发时部分 rollvm 变量没有被设置 #767

Closed
4 tasks done
Szzrain opened this issue May 4, 2024 · 0 comments · Fixed by #768
Closed
4 tasks done

[Bug]: ext.onNotCommandReceived 触发时部分 rollvm 变量没有被设置 #767

Szzrain opened this issue May 4, 2024 · 0 comments · Fixed by #768
Labels
bug Something isn't working

Comments

@Szzrain
Copy link
Contributor

Szzrain commented May 4, 2024

在提问之前...

  • 我理解 Issue 是用于反馈和解决问题的,而非吐槽评论区,将尽可能提供更多信息帮助问题解决
  • 我填写了简短且清晰明确的标题,以便开发者在翻阅 issue 列表时能快速确定大致问题。而不是“一个建议”、“卡住了”等
  • 我已查看master branch或最新测试版的更新内容,并未提及该 bug 已被修复的情况
  • 已有issue中并没有看见其他人与我反馈相同的问题

问题描述

JS 插件 中注册了 ext.onNotCommandReceived 的回调时如果调用 rollvm 的变量会导致一部分变量没有被设置

如何复现

ext.onNotCommandReceived = (ctx, msg) => {
    seal.replyToSender(ctx, msg, seal.format(ctx, "{$t玩家}"));
}

你期望发生的

上述代码应当发送玩家名

实际上发生的

返回了0 (rollvm 中变量的默认值)

日志文件

无有效日志

截图

No response

海豹核心版本

1be347b

操作系统

测试环境为 Windows 但是理论上影响全部平台

帐号类型

测试时 QQ 但理论全部

使用协议

No response

附加内容

注意:复现时复现者不能在此之前使用过指令,否则无法复现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant