Skip to content

sebm253/FlagGuessr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlagGuessr

FlagGuessr is a minigame Discord bot about guessing countries based on their flag and hints related to the country.

Features

Hints

  1. Driving side
  2. Population
  3. Capitals
  4. Top Level Domains

Options

  1. Difficulty (Normal & Hard) - on Hard difficulty, guessing a country incorrectly will result in immediately losing the streak
  2. Minimum population - predefined set of populations to filter countries
  3. Hide - whether the game embeds should only be visible to the user

Ideas for expansion

  1. Leaderboard system

Ready to play?

Invite Flag Guessr using this link.

Have a question, suggestion or a concern?

Join the support server.

Technical details

Flag Guessr is completely stateless - information about games is stored in buttons/modals as JSON. This means that there is no database and users don't lose their progress after bot restarts (unless they delete the embeds).

{
   "u":"244563286257827840",
   "d":0,
   "m":10000000,
   "i":22,
   "e":false,
   "s":1,
   "a":0,
   "h":0
}
{
   "d":0,
   "m":10000000,
   "i":22,
   "e":false,
   "s":1
}

Breakdown

u: user ID, used for checking who can interact with the game embed

d: difficulty (0 = Normal, 1 = Hard)

m: minimum population

i: index of the country in the slice, used for getting details

e: whether the game embeds should be ephemeral

s: current streak

a: action the button should execute

h: current hint