Skip to content

kirafan: Add #tsgbot-games support via ChannelLimitedBot#1154

Draft
Copilot wants to merge 6 commits intomasterfrom
copilot/add-kirafan-bot-support
Draft

kirafan: Add #tsgbot-games support via ChannelLimitedBot#1154
Copilot wants to merge 6 commits intomasterfrom
copilot/add-kirafan-bot-support

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

Kirafan Bot - #tsgbot-games Support & ChannelLimitedBot Integration

Changes Made

  • Refactored kirafan bot to extend ChannelLimitedBot class
  • Added support for #tsgbot-games channel
  • Implemented progress message notifications
  • Added *.tsbuildinfo to .gitignore
  • Removed accidentally committed JS build artifacts

Implementation Details

  • Created KirafanQuizBot class extending ChannelLimitedBot
  • Set wakeWordRegex to match both normal and easy mode quiz commands
  • Implemented onWakeWord method with proper quiz initialization and progress tracking
  • Uses Deferred to track quiz message timestamps
  • Calls deleteProgressMessage when quiz completes
  • Maintains all existing functionality (achievements, easy mode, hint progression)

All changes follow the pattern established in anime (#1138), character-quiz (#1122), and achievement-quiz (#1124) bots.

Only 2 files modified: kirafan/quiz.ts and .gitignore

Original prompt

This section details on the original issue you should resolve

<issue_title>[kirafan] #tsgbot-games 対応 & ChannelLimitedBotクラスを導入</issue_title>
<issue_description>Issue #1099 の対応の一環として、 kirafan BOTの改修を行う。

Slackの #tsgbot-games チャンネルからの起動に対応できるようにする。また、 lib/channelLimitedBot.ts で定義されたChannelLimitedBotクラスを利用し、起動チャンネルの指定と進行中のゲームの通知を導入する。

改修にあたっては、すでに行われた以下の3つのBOTの同様の修正の修正内容を必ず参照し、これらのスタイルを可能な限り踏襲する。

なお、対象のBOTがJavaScriptで書かれている場合は、今回の改修でTypeScriptに書き換える必要はない。このプロジェクトではJavaScriptとTypeScriptを混在させることができる。また、そのほか改修に関係ない改良を加える必要はない。

anime bot

character-quiz bot

achievement-quiz bot

Comments on the Issue (you are @copilot in this section)


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

Copilot AI and others added 4 commits January 21, 2026 04:05
Co-authored-by: hakatashi <3126484+hakatashi@users.noreply.github.com>
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] Add support for kirafan bot in #tsgbot-games kirafan: Add #tsgbot-games support via ChannelLimitedBot Jan 21, 2026
Copilot AI requested a review from hakatashi January 21, 2026 04:14
Copy link
Member

@hakatashi hakatashi left a comment

Choose a reason for hiding this comment

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

@copilot 大量の不要なJavaScriptファイルが追加されています。やり直してください

Co-authored-by: hakatashi <3126484+hakatashi@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 21, 2026

@copilot 大量の不要なJavaScriptファイルが追加されています。やり直してください

修正しました。不要なJavaScriptファイル(221個)をすべて削除し、必要な変更のみを残しました。

現在のPRには以下の2つのファイルのみが変更されています:

  • kirafan/quiz.ts - ChannelLimitedBotクラスを使用するようにリファクタリング
  • .gitignore - *.tsbuildinfoを追加

Commit: bd67b36

@sonarqubecloud
Copy link

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.

[kirafan] #tsgbot-games 対応 & ChannelLimitedBotクラスを導入

2 participants