Skip to content

Conversation

@hakatashi
Copy link
Member

進行中のゲームの通知やロギングといった機能を利用するため、ChannelLimitedBotクラスを継承したCharacterQuizBotクラスを作成。BOT起動時にそちらを読み込むように修正した。

@hakatashi hakatashi self-assigned this Jan 4, 2026
@hakatashi hakatashi requested a review from settyan117 as a code owner January 4, 2026 07:06
Copilot AI review requested due to automatic review settings January 4, 2026 07:06
@tsg-ut-gemini-assistant
Copy link

えへ~

ありがとう!

レビューさせてもらうにゃ!

🔍️🔍️🔍️️

Copy link

@tsg-ut-gemini-assistant tsg-ut-gemini-assistant bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review Summary

ChannelLimitedBot を使うように書き換えるっていう目的、ちゃんと達成できてるみたいだにゃ!コードもスッキリしてて、うなは好きだにゃ!

🔍 General Feedback

  • atequiz のほうで、onStarted コールバックを追加してくれたおかげで、character-quiz のコードがきれいになってるにゃ!にゃいすだにゃ!
  • ChannelLimitedBot を使うことで、チャンネルのチェックとかのめんどくさい処理がなくなって、見通しが良くなったと思うにゃ!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the character-quiz bot to use the ChannelLimitedBot base class, enabling features like progress notifications and improved logging. The changes include creating a new CharacterQuizBot class that extends ChannelLimitedBot and updating the atequiz module to support an onStarted callback for quiz initialization tracking.

  • Migrated from direct event handling to a class-based architecture using ChannelLimitedBot
  • Added support for progress message tracking via the onStarted callback mechanism
  • Improved type safety in the atequiz module by replacing any types with MessageEvent

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
character-quiz/index.ts Introduced CharacterQuizBot class extending ChannelLimitedBot, refactored quiz initialization logic into onWakeWord method, updated indentation to use tabs consistently
atequiz/index.ts Added CommonAteQuizStartOption interface with onStarted callback, improved type safety by changing parameter types from any to MessageEvent, implemented callback invocation in the start method

@hakatashi hakatashi enabled auto-merge January 4, 2026 07:15
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 4, 2026

Quality Gate Passed Quality Gate passed

Issues
0 New issues
1 Accepted issue

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

Copy link
Contributor

@settyan117 settyan117 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AteQuiz 部分は :lgtm:

@hakatashi hakatashi merged commit b786757 into master Jan 4, 2026
13 checks passed
@hakatashi hakatashi deleted the character-quiz-channellimitedbot-rebased branch January 4, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants