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
Message event is not being captured though 'chat/receive' is captured.
Use below demo.
import { Context, Logger, Schema } from 'koishi' export const name = 'demo' export const Config: Schema<Config> = Schema.object({}) const logger = new Logger('demo') export function apply(ctx: Context) { logger.info("Demo is loaded") logger.info(ctx) ctx.on('message', async(meta) => { logger.info("Message event") logger.info(meta) }) ctx.on('chat/receive', async(meta) => { logger.info("chat/receive event") logger.info(meta) }) }
And chat in sandbox.
Log line should have both demo Message event and demo chat/receive event but the first one is missing.
demo Message event
demo chat/receive event
2022-06-12 15:27:16 [I] demo Demo is loaded 2022-06-12 15:27:16 [I] demo Context <demo> 2022-06-12 15:27:16 [I] watch reload plugin at plugins/demo/src/index.ts 2022-06-12 15:32:09 [D] message [@Alice] Alice: Hola 2022-06-12 15:32:09 [I] demo chat/receive event 2022-06-12 15:32:09 [I] demo { content: 'Hola', timestamp: undefined, messageId: undefined, platform: 'sandbox', selfId: 'koishi', channelId: '@Alice', channelName: '@Alice', guildId: '@Alice', guildName: undefined, userId: 'Alice', username: 'Alice', nickname: undefined, avatar: undefined, selfName: 'koishi', abstract: 'Hola', quote: undefined }
No response
The text was updated successfully, but these errors were encountered:
Fixed in 4.7.4. Thanks for your report.
Release notes will come later.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Message event is not being captured though 'chat/receive' is captured.
Steps to reproduce
Use below demo.
And chat in sandbox.
Expected behavior
Log line should have both
demo Message event
anddemo chat/receive event
but the first one is missing.Screenshots
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: