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

bot: Create my_turn command #15

Open
5 tasks
rsodre opened this issue Apr 30, 2024 · 1 comment
Open
5 tasks

bot: Create my_turn command #15

rsodre opened this issue Apr 30, 2024 · 1 comment
Assignees

Comments

@rsodre
Copy link
Contributor

rsodre commented Apr 30, 2024

Depends on #2, #5

Tasks

  • Create new command: my_turn
    • Check if the Discord User who sent the command is linked to a duelist addresses (app: Social Profile App #5)
    • If not, display a message explaining how to link (TBD), and exit
    • Display a private message to the Discord user, displaying all the Duels that are waiting for their action
    • The message content must have the same as the live_duels (bot: Duel listing commands #2) command

The ChallengeState enum:

enum ChallengeState {
    Null,
    Awaiting,
    Withdrawn,
    Refused,
    Expired,
    InProgress,
    Resolved,
    Draw,
}

Notes

  • Please do not duplicate functionality!
  • When displaying a message with the same contents as other messages (my_duels and duels_by_duelist, my_turn and live_duels for example), extract the message-building part to a new function that can be called by both.
@rsodre rsodre changed the title bot: my_turn command bot: Create my_turn command Apr 30, 2024
@Pycomet
Copy link

Pycomet commented May 1, 2024

@rsodre, this also looks like a great first issue for me. Can I take this on?

@rsodre rsodre self-assigned this May 21, 2024
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

2 participants