This repository was archived by the owner on Mar 3, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
This repository was archived by the owner on Mar 3, 2022. It is now read-only.
Game Profiles #190
Copy link
Copy link
Open
Labels
Milestone
Description
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!profilewhich 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 thecreateargument (for now)delete: Delete a profile, this also receives the profile name to be deleted.
- Make
ritsu!startuse 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)