> 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.micro-games.net/the-midnight-game.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
