Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Game Profiles #190

Open
Sazzo opened this issue Jul 16, 2021 · 0 comments
Open

Game Profiles #190

Sazzo opened this issue Jul 16, 2021 · 0 comments
Assignees
Milestone

Comments

@Sazzo
Copy link
Member

Sazzo commented Jul 16, 2021

A Game Profile (or just Profile) is basically a new form of setting the game configuration (gamemode, rounds number, rounds duration and etc) and re-use it without needing to answer Ritsu questions everytime. In this issue, these things should be included:

  • Create a command called ritsu!profile which can receive the following arguments:
    • create: Create a new profile with a name, Ritsu will request the same process of setting the game configuration but this time, she will not start a game and instead will save this information to the profile and then save it to the database.
    • edit: Edit a profile, this receives the name and also repeat the same process of the create argument (for now)
    • delete: Delete a profile, this also receives the profile name to be deleted.
  • Make ritsu!start use the profile and applies the saved configuration if the profile name was specified in the command (example: ritsu!start profile:profile1)

Profiles shoud be saved under the User entity in a nested array called profiles, each profile should have this structure:

{
  "name": "Profile Name",
  "configuration": {
    "gamemode": "easy",
    "rounds": 10,
    "duration": "10000 (the duration in miliseconds)",
    "themeType": "ending",
    "animelistWebsite": "anilist",
    "animeListUsername": "User",
    "season": "winter",
    "seasonYear": 2018
  }
}

(this can be changed, but not so much)

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

No branches or pull requests

1 participant