Skip to content
New issue

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

志步機器人開發藍圖 #2

Open
2 of 3 tasks
s25g5d4 opened this issue Feb 7, 2022 · 0 comments
Open
2 of 3 tasks

志步機器人開發藍圖 #2

s25g5d4 opened this issue Feb 7, 2022 · 0 comments

Comments

@s25g5d4
Copy link
Owner

s25g5d4 commented Feb 7, 2022

目前志步機器人核心功能都已完成,所以接下來將凍結所有新功能開發、與任何將大幅修改
現有指令的變更,以發布第一個穩定版本 1.0.0 為目標。

志步機器人將遵循 semver 規範,在 1.0.0 發布後,不涉及變更現有指令的 bug fix 將會
屬於 patch 版本更新,新增指令屬於 minor 版本更新,修改現有指令屬於 major 版本更
新。

功能回顧

志步機器人一開始的發展目標為自動化更新玩家編組倍率與排位,避免手動更新的不便。目
前已實作的功能有:

  1. 更新、刪除玩家編組,最多可設定十組編組
  2. 設定其中一組編組為使用中編組,以提供排位功能使用
  3. 以推車房慣例排序四位或五位玩家的站位順序

距離穩定版本尚缺

  1. error handling
    目前在 Commander.executeCommand 裡並沒有做任何錯誤處理,當 command 處理超時
    時 Discord 會拋出錯誤,導致程式崩潰
  2. unit test
    Arrange, profile update 指令缺乏單元測試
  3. README
    至少要做到可以讓其他人看 README 從零開始建置機器人

未來發展目標

近期目標

  1. 強化防呆機制,在 profile update 指令裡避免綜合力與卡片倍率數值輸入過高或過低
  2. 更詳細的錯誤資訊 - 目前指令輸入錯誤只會顯示 "格式不正確",應明確指出是哪個選
    項格式錯誤。
  3. 在 arrange 指令中過濾掉重複的玩家,並提示使用者已過濾掉的選項。
  4. 使用 profile activate 指令時,不可指定空白的編組檔。

中期目標

  1. 使用 profile remove 指令時,若刪除使用中編組,將令使用中編組為 null。實作時應
    該注意 active 屬性將可能被設為 null,應檢查所有有存取 active 屬性的地方。
  2. 針對不同伺服器使用不同資料表,避免洩漏使用者個人資料到不同伺服器。
  3. 新增 integration test 與 CI/CD。

長期目標

  1. 幫編組取名。
  2. 顯示五張卡片倍率。
  3. 針對個別指令設定僅/不得在特定頻道使用。
  4. 提供 web UI。
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

No branches or pull requests

1 participant