# First Launch

## Purchase Nighty Key

Purchase a license key at <https://nighty.one/#buy> through our official shop or from one of our authorized resellers.

{% hint style="info" %}
To ensure maximum security, it is imperative to save your Nighty key in a safe and protected location. We recommend storing it in a text file (.txt) on a USB or flash drive, or using a dedicated app on your phone's notes for added convenience. Nevertheless, we strongly discourage the use of pen and paper to safeguard your Nighty key, as this approach may lead to potential loss or unauthorised access. Prioritising the safety of your Nighty key is of paramount importance to maintain the integrity of your Nighty account and its associated functionalities.
{% endhint %}

{% hint style="warning" %}
Each license key is intended for a single owner. Official license keys can be purchased from our authorized shop at nighty.one. Reselling keys unofficially is strictly prohibited and may result in key revocation, ensuring a fair and secure environment for all users.
{% endhint %}

***

## Download the launcher

Download the launcher from our official website at <https://nighty.one/get-links>. You will be asked for a license key before downloading.

***

## Unzipping and Placing the launcher

Unzip the ***Nighty.exe*** from *Nighty.zip* and run the executable.

<figure><img src="https://3836407116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFce5BqRsGvQObqcfG7q%2Fuploads%2FYwXAZIl7y473HVyIMB7n%2Funzip1.png?alt=media&#x26;token=9a1cb2e1-0f9d-40da-83f0-cd9381ba8522" alt=""><figcaption><p>Unzip (extract) Nighty.exe from Nighty.zip</p></figcaption></figure>

***

## Inputting Your License Key

Nighty will prompt you to input your license key upon startup. If you have previously run Nighty on this computer, it will not prompt you again. Simply enter your license key in the provided field and click "Continue."

<figure><img src="https://3836407116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFce5BqRsGvQObqcfG7q%2Fuploads%2FUNgaSshrQdlb2LcMteGf%2Fkey-input-new.webp?alt=media&#x26;token=b742af3f-5e17-42b4-acd6-840c6cd9f69f" alt=""><figcaption><p>License Key Window</p></figcaption></figure>

***

## Connect Nighty to your Discord account

To connect to your account, Nighty offers three login options: ~~**Client Login**~~**, Web Login and Token Login**.

{% tabs %}
{% tab title=" 🔥  Web Login" %}
This option prompts a standard Discord login window, where you can input your Discord credentials or scan a QR code.

<figure><img src="https://3836407116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFce5BqRsGvQObqcfG7q%2Fuploads%2FHTBCoWY9cn1dkc8SKMWH%2Flogin2.png?alt=media&#x26;token=04153b8e-e863-452c-bfa6-4e7b24f519ce" alt=""><figcaption><p>Web login window</p></figcaption></figure>
{% endtab %}

{% tab title=" Token Login" %}
This method requires providing your account token and password. Check our guide on how to obtain your token below.

How to get your Discord token?

1. Login to Discord in a browser.
2. Open developer tools (F12).
3. Open console tab in the developer tools.
4. Paste the code from the codeblock below into the console and hit enter. If you get a pasting error, type in "allow pasting" and click Enter.
5. Copy your token and input into Nighty.

```
let token;
webpackChunkdiscord_app.push([
  [Math.random()],
  {},
  (r) => {
    for (let m in r.c) {
      try {
        const mod = r.c[m].exports;
        if (mod && mod.default && typeof mod.default.getToken === 'function') {
          token = mod.default.getToken();
          break;
        }
      } catch {}
    }
  },
]);
console.log(token);
```

{% endtab %}
{% endtabs %}

***

## Creating an App

Nighty relies on **user apps** to execute commands on Discord. During the initial setup, you'll be prompted to create one. Simply enter a name of your choice and click **Create** to proceed. You can change the app name anytime later using the `/appedit` command.\\

<figure><img src="https://3836407116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFce5BqRsGvQObqcfG7q%2Fuploads%2FMHtr5JJgDSvh0rwyuSYA%2FScreenshot%20(242).png?alt=media&#x26;token=4883cb9a-edbd-4973-a3e9-d23ab4b71a71" alt=""><figcaption><p>Give your App a custom name</p></figcaption></figure>

***

## **Getting Your Application Token**

Nighty now needs to retrieve your application token. **Do not enter anything manually.** Simply click the **"Get Your Application Token"** button and wait for the window to open.

<figure><img src="https://3836407116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFce5BqRsGvQObqcfG7q%2Fuploads%2F8Zo0OdUrptap9qZVlArq%2FScreenshot%20(243).png?alt=media&#x26;token=55159395-5cf9-413c-9ae6-80529a940335" alt=""><figcaption></figcaption></figure>

Now, simply click the **"Reset Token"** button. You may be asked to confirm this by entering your Discord password or 2FA code - do so if prompted. Once completed, wait a few seconds for Nighty to retrieve your application token.

<figure><img src="https://3836407116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFce5BqRsGvQObqcfG7q%2Fuploads%2FnrKvdH7kGG3ByKOVOcUw%2FScreenshot%20(244)%20copy.png?alt=media&#x26;token=507dd14e-447b-46c6-8a19-f34bd966a26e" alt=""><figcaption></figcaption></figure>

***

## **Authorize Nighty App**

Almost done! Now, authorize the Nighty app by clicking the **"Authorize"** button.

<figure><img src="https://3836407116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFce5BqRsGvQObqcfG7q%2Fuploads%2Fu3qkFgNYDLwJWeMW2IQv%2FScreenshot%20(244)%20aacopy.png?alt=media&#x26;token=3085c716-e1e2-4ac8-a3fa-545dd1c9e100" alt=""><figcaption></figcaption></figure>

***

## Done!

Congratulations! Nighty is now successfully connected to your account. For any assistance, please refer to our troubleshooting guide or reach out to our dedicated [support team](https://nighty.support/).

<figure><img src="https://3836407116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaFce5BqRsGvQObqcfG7q%2Fuploads%2F17RZAi98CibyfNNmFRtB%2F1.webp?alt=media&#x26;token=d736e6be-4ca8-4097-b2ea-70e349aa11c7" alt=""><figcaption></figcaption></figure>
