Skip to content

/vote command #172

@Jurorno9

Description

@Jurorno9

so yeah ... we need to make a new command to allow a player to vote for a mindustry map in-game, along with infrastructure to track votes across map versions and players. Here is what I am thinking

  • Update the Discord Bot to make a maps.json file, which keeps a list of all maps in current maps, along with a list previous filenames associated with the map
  • When a server has a map update, download a copy of this JSON file for reference
  • Store votes in a FishPlayer as a Record<filename, {vote:number, feedback:string}>
  • When a player connects, update their map votes so the filename parameter matches the most recent file
  • when a player votes, check if they have a vote of matching filename (update a vote if so, create a new vote if not)

Then getting the votes per each map ... that's some database stuff for balam to figure out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions