Skip to content

Add syncing save data with Discord #20

@therealvidem

Description

@therealvidem

Allow users to sign in using a Discord account, then have all of their save and settings data be synced with that account.

  • Still allow players without Discord to play and use settings; their save and settings data will be stored on local storage
  • Conflicts should be resolved by:
    • Merging the days array
    • Recalculating total plays, total wins, max streak, and current streak
    • If there exists the same word on each data, take the one that has the correct guess. Otherwise, take the one that has the most amount of guesses. Otherwise, replace the current word's data with the incoming one.
    • Conflicting settings should always take the incoming data
  • Current save and settings data stored on local storage should be synced with Discord immediately when a player logs in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions