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

[任務] 考試系統的 Kick off #136

Open
Johnny850807 opened this issue Jun 11, 2023 · 1 comment
Open

[任務] 考試系統的 Kick off #136

Johnny850807 opened this issue Jun 11, 2023 · 1 comment
Assignees

Comments

@Johnny850807
Copy link
Contributor

Slash Command Quest

任務描述

  1. 實作考試系統 (Quiz) feature module
    實作以下行為:

  2. 當使用者「私訊」下指令:/quiz

    只准私訊使用考試功能

  3. 機器人私訊回覆:"開始考試!"

  4. 5秒之後,接下來,機器人針對此考試中的每一項題目:

    1. 用 Discord EmbeddedMessage 出題 (每一題為選擇題),按鈕為選項。
    2. 使用者點按鈕來作答
    3. 機器人判斷答案是否正確,若正確的話回覆 "答對!",若不正確的話回覆 "答錯!"
      • 若使用者答錯的次數 > N (每個考試可設定不同N),則回覆 "你失敗了!考試結束,再接再厲!",並結束考試。
    4. 緊接著機器人出下一題,回到步驟 1

Slash Command 資訊

  1. command name: quiz
  2. command arguments:
    • quiz-name: 考試的名字(唯一,全英文)
  3. command description:開始一場考試

測試方法

在程式碼中寫死一個簡單的考試物件,題目隨意但至少 5 題。

注意事項

先求有再求好

@Dlutermade
Copy link

quiz-name can have a hint?
( UX )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants