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

[任務] 投票指令 /poll #98

Open
Johnny850807 opened this issue May 21, 2023 · 0 comments · May be fixed by #195
Open

[任務] 投票指令 /poll #98

Johnny850807 opened this issue May 21, 2023 · 0 comments · May be fixed by #195
Assignees

Comments

@Johnny850807
Copy link
Contributor

Johnny850807 commented May 21, 2023

Slash Command Quest

任務描述

Slash Command 資訊

  1. /poll time=1 timeUnit=minutes question="Which operating system do you prefer?" options="Windows,MacOS,Linux,Other

測試步驟

Examples:

  1. 發布投票
    When: 在 A 文字頻道中發出以下 slash command
    /poll time=1 timeUnit=minutes question="Which operating system do you prefer?" options="Windows,MacOS,Linux,Other"
    Then:
    Bot 在 A 文字頻道中,回應以下公開訊息(類似)
image
  1. 投票
    Given 呈[發布投票]
    When

  2. member A 點選表情 1

  3. member B 點選表情 2

  4. member C 點選表情 1
    And

  5. 一分鐘過後
    Then

  6. 機器人公布投票結果(訊息):The polling result is Windows

  7. 每個人最多投一票
    Given 呈[發布投票]
    When

  8. member A 點選表情 1
    And

  9. member A 點選表情 2
    Then

  10. 機器人將 A 點選的表情 2 刪除

  11. 每個人最多投一票,除非他先收回上一次投票
    Given 呈[發布投票]
    When

  12. member A 點選表情 1

  13. member A 收回表情 1
    And

  14. member A 點選表情 2
    Then

  15. 表情 2 should remain

注意事項

如果有任何特殊事項或需要注意的問題,請在此說明。

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

Successfully merging a pull request may close this issue.

2 participants