> For the complete documentation index, see [llms.txt](https://docs.micro-games.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.micro-games.net/the-midnight-game.md).

# The Midnight Game

<figure><img src="/files/sMYauOfQUURltVWodTUc" alt=""><figcaption></figcaption></figure>

## Goal

The goal is to be the first to click on the button after midnight.

## Setup

To set up the game, run the command `/set-game` with the following arguments :&#x20;

* channel: the channel in which the game will run
* timezone: the timezone used to determine when midnight is. The text field is autocompleted, you can use the country, the major city, or the GMT offset to find your preferred timezone
* language: the language of the game. currently only English and French are supported

<div data-full-width="true"><figure><img src="/files/lPg38uxGgmssCNTlTDZu" alt=""><figcaption></figcaption></figure></div>

## Rewards

You can reward players for scoring a certain number of time by adding rewards with the `/add-reward` and `/remove-reward` commands. You can specify any number of role to be awarded by attaining a certain number of total wins by that player.

<figure><img src="/files/H3z7c5RQxm4xg1bQh3dR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1IoaDxQtATQCWHQ2nRNT" alt=""><figcaption></figcaption></figure>

## Add the bot to your server

<https://discord.com/api/oauth2/authorize?client_id=1177774849846943844&scope=bot&permissions=2416036992>

## Source code

<https://github.com/Seblor/The-Midnight-Game>
