We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
^
创建并启用以下插件,设置过滤器:平台 等于 onebot 群组 ID 等于 123456789
平台 等于 onebot
群组 ID 等于 123456789
export const name = "greet" export function apply(ctx) { ctx.on("guild-member-added", session => { ctx.logger.info("aaa", session) }) }
在 Koishi 控制台的“沙盒”中添加用户
2024-10-21 11:46:27 [I] greet aaa Session { id: 728, event: { user: { id: 'Dave', name: 'Dave' }, channel: { id: '#', type: 0 }, guild: { id: '#' }, timestamp: 1729482387839, selfId: 'koishi', platform: 'sandbox:pmnmowshgei', type: 'guild-member-added' }, locales: [], [Symbol(cordis.tracker)]: { associate: 'session', property: 'ctx' } }
其他平台成员加入群组的事件则可以正常被过滤。
在沙盒添加用户不应该触发带上述过滤器的插件中的钩子。
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
^
Steps to reproduce
创建并启用以下插件,设置过滤器:
平台 等于 onebot
群组 ID 等于 123456789
在 Koishi 控制台的“沙盒”中添加用户
2024-10-21 11:46:27 [I] greet aaa Session { id: 728, event: { user: { id: 'Dave', name: 'Dave' }, channel: { id: '#', type: 0 }, guild: { id: '#' }, timestamp: 1729482387839, selfId: 'koishi', platform: 'sandbox:pmnmowshgei', type: 'guild-member-added' }, locales: [], [Symbol(cordis.tracker)]: { associate: 'session', property: 'ctx' } }
其他平台成员加入群组的事件则可以正常被过滤。
Expected behavior
在沙盒添加用户不应该触发带上述过滤器的插件中的钩子。
Screenshots
No response
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: