# Installation

## Prerequisites

* Java 17 or above.
* Basic knowledge of how to navigate and use Discord.

## Creating and Adding the Bot

1. Go to [Discord's Developer Portal](https://discord.com/developers/applications).
2. Create a new application. Set the username and, optionally, the profile picture.
3. On the left menu, click Bot.
4. Click Create a Bot and set its username and, optionally, the profile picture.
5. Untick "Public Bot" so other people can't just invite your bot onto their server.
6. Tick "Message Content Intent" so the bot can access your messages.
7. Click Copy Token- you will need the bot's token for later.
8. Go to OAuth and for scope, select "bot" and "application.commands". For permission, tick either Administrator or all the permissions the bot needs (view channel, send messages, embed links).
9. Go to the link that is generated and follow the instructions to add the bot to the server(s) of your choice.

## Starting the Bot

1. Run the StartEmbeddy.bat file (Windows) or execute your operating system's equivalent of `java -jar Embeddy-{VERSION}.jar`.
2. The bot will start loading. If this is your first time, a settings.yml will be generated.
3. Join our [Discord server](https://demeng.dev/discord) and request a license key.
4. Go to settings.yml and fill in your license key.
5. Fill in your bot token by pasting the token you copied from step 6 of Creating and Adding the Bot. Make sure the token is surrounded with "double quotes".
6. Save the file and restart the bot. Embeddy should now be successfully enabled if you followed all the steps correctly!
7. Congratulations! Your bot is now up and running. You can confirm this by going to your Discord server and checking the bot's status. It should now be Online.


---

# Agent Instructions: 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:

```
GET https://docs.demeng.dev/embeddy/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
