Skip to content
Will Russell edited this page Apr 29, 2019 · 2 revisions

There are 3 json files that store the data for Food Flex.

  • daily_data.json
  • scoreboard.json
  • quotes.json

daily_data.json

This stores 3 lists:

  • submissions int
  • votes int
  • voters int

submissions

Stores the IDs of the users who have submitted.

votes

Stores the number of votes for each submission. The index of the vote matches the index of the users ID in submissions.

voters

Stores the IDs of the users who have voted.

scoreboard.json

This stores 2 lists:

  • users int
  • score int

users

Stores the IDs of users who have participated in food flex, and won at least once.

score

Stores the number of wins for each user. The index of the score matches the index of the users ID in users

quotes.json

Stores the quotes the bot says. Contains 2 lists of quotes:

  • nice str
  • rude str

Nice aren't used in the bot, but could be used in the future. The quotes are picked at random from rude. You can add new quotes here.

NOTE: The Discord API uses snowflakes to store user IDs. discord.py previously used a string data type, but now uses a int data type.

Clone this wiki locally