gckohaku / gckohaku/TrpgDiceBot

Refactor: Coc6CommandProcess の内容を Dictionary で参照するようにする

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
refactoring
Dominant language
C#
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

https://github.com/gckohaku/TrpgDiceBot/blob/6695b4f4e70f3d780f890bb5857151b055238a5e/Coc6CommandProcess.cs

現状 `Coc6CommandProcess` クラスの内容は、if else でどのコマンドなのかを解釈し実行しているが、これだとコマンドの量が増える度によろしくないことになるので、値にデリゲートが入った `Dictionary` を用意して、それを参照する形にしたい。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with Coc6CommandProcess.cs and trace how its current if/else command interpretation and execution work. Refactor the dispatch so command handling is looked up through the requested Dictionary structure, then verify that existing command behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.