Open
Conversation
Co-authored-by: hakatashi <3126484+hakatashi@users.noreply.github.com>
Co-authored-by: hakatashi <3126484+hakatashi@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update bungo-quiz bot for channel interaction
Add ChannelLimitedBot support to bungo-quiz
Jan 21, 2026
hakatashi
requested changes
Jan 21, 2026
bungo-quiz/index.ts
Outdated
bungo-quiz/index.ts
Outdated
| channel, | ||
| text: `エラー😢\n\`${errorText}\`\n--debugInfo--\n${debugInfo.join('\n')}`, | ||
| }); | ||
| quizMessageDeferred.resolve(null); |
Co-authored-by: hakatashi <3126484+hakatashi@users.noreply.github.com>
|
|
えへ~ ありがとう! レビューさせてもらうにゃ! |
Comment on lines
155
to
+157
| hintMessages: [ | ||
| ...hints.slice(1, -1).map((text, index, arr) => { | ||
| return { channel, text: `次のヒントです!\n> ${text}` } | ||
| ...hints.slice(1, -1).map((text) => { | ||
| return { channel, text: `次のヒントです!\n> ${text}` }; |
There was a problem hiding this comment.
🟢 にゃしし!ここの {} と return は、なくても動くみたいだにゃ!こうすると、もっとスッキリすると思うにゃ!
Suggested change
| hintMessages: [ | |
| ...hints.slice(1, -1).map((text, index, arr) => { | |
| return { channel, text: `次のヒントです!\n> ${text}` } | |
| ...hints.slice(1, -1).map((text) => { | |
| return { channel, text: `次のヒントです!\n> ${text}` }; | |
| ...hints.slice(1, -1).map((text) => ({ | |
| channel, text: `次のヒントです!\n> ${text}`, | |
| })), |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the bungo-quiz bot to use the ChannelLimitedBot framework, enabling it to work with the #tsgbot-games channel while following the same architectural pattern established in anime, character-quiz, and achievement-quiz bots.
Changes:
- Converted bungo-quiz from event-based message handling to class-based ChannelLimitedBot architecture
- Implemented Deferred pattern for tracking quiz start messages and managing progress message lifecycle
- Added proper error handling with isResolved check to prevent double-resolution of promises
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.