# The Midnight Game

<figure><img src="https://1180401624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4DBYKGMQF1tU3PMwQ4K1%2Fuploads%2FRQpeEG3hjKlDVQZ2nR1Y%2Fimage.png?alt=media&#x26;token=b496f5df-4059-4f22-9104-444762b69bce" 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="https://1180401624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4DBYKGMQF1tU3PMwQ4K1%2Fuploads%2FtciAS0BPwQxq2Znjv8m3%2Fimage.png?alt=media&#x26;token=e93034e7-e86c-4135-8591-55762cd52e90" 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="https://1180401624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4DBYKGMQF1tU3PMwQ4K1%2Fuploads%2FMlwSJdZqvdkwry3OdITW%2Fimage.png?alt=media&#x26;token=d487e60a-e906-454b-8d25-2bb0d03d083a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1180401624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4DBYKGMQF1tU3PMwQ4K1%2Fuploads%2Fde5WTHIhjs3E9IJpeRso%2Fimage.png?alt=media&#x26;token=c19c03b6-36f8-442c-b30c-88e553ca48d4" 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>
