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

cmd.check判定无效 #218

Closed
NWYLZW opened this issue Apr 10, 2021 · 1 comment
Closed

cmd.check判定无效 #218

NWYLZW opened this issue Apr 10, 2021 · 1 comment

Comments

@NWYLZW
Copy link
Contributor

NWYLZW commented Apr 10, 2021

Describe the bug
在check中return了值但是没有被处理

To Reproduce
创建一个cmd并在check中返回一个值
action的行为不会被阻断

Expected behavior
阻断接下来的action行为

Screenshots
image
image

Versions
"dependencies": {
"dayjs": "^1.10.4",
"koishi": "^3.7.0",
"koishi-adapter-onebot": "^3.0.5",
"koishi-plugin-mongo": "^2.2.1",
"lodash": "^4.17.21",
"ts-node": "^9.1.1",
"tsconfig-paths": "^3.9.0",
"tslib": "^2.2.0",
"typescript": "^4.2.3",
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.168",
"@types/node": "^14.14.37",
"@types/uuid": "^8.3.0",
"nodemon": "^2.0.7"
}

  • OS: win10 20H2
  • Node Version: v14.16.0
  • CoolQ Version: none
  • CQHTTP Version: v1.0.0-beta1
  • Koishi Version: 3.7.0

Additional context
null

@NWYLZW
Copy link
Contributor Author

NWYLZW commented Apr 13, 2021

check传入为async函数时会触发该问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants