# Installation Guide

## Cookie Installation Guide 🍪

Welcome to the Cookie Installation Guide! In this step-by-step tutorial, you will learn how to invite and set up Cookie in your Discord server to start farming, baking, and trading cookies with your community.

***

### Step 1: Inviting Cookie to Your Server

1. **Go to the Invite Link**
   * Click [here](https://discord.com/api/oauth2/authorize?client_id=990440502082019338\&permissions=414464724032\&scope=bot%20applications.commands) to open the Cookie invite link.
2. **Select a Server**
   * After clicking the link, you'll be prompted to choose which Discord server you want to add Cookie to. You must have "Manage Server" permissions in that server to invite the bot.
3. **Authorize Permissions**
   * Cookie Bot requires specific permissions to function properly:
     * **Read Messages**
     * **Send Messages**
     * **Embed Links**
     * **Use Slash Commands**
     * **Manage Roles** (optional but useful for automatic role assignment)
   * Review the list and authorize these permissions by clicking the **Authorize** button.
4. **Verify You’re Human**
   * Complete the CAPTCHA (if prompted) to verify that you're not a bot.

***

### Step 2: Setting Up Cookie

Once Cookie is in your server, it’s time to configure and set it up for your community.

1. **Welcome Message**
   * After adding the bot, Cookie will send a welcome message in the designated general or bot commands channel. This message contains helpful instructions and links to get started.
2. **Create a Bot Channel** (Recommended)
   * For better organization, it’s a good idea to create a dedicated bot channel where members can interact with Cookie.
     * **How to Create a Channel:** Go to your server settings, click **Create Channel**, and select **Text Channel**. Name it something like "cookie-bot" or "farm-zone" to keep bot commands organized.
3. **Starting Your Cookie Account**
   * Each user must start their Cookie account by typing `/start` in the bot channel. This command will create their account and give them access to all the bot's features.
4. **Help Command**
   * Use `/help` to view a full list of commands available for Cookie, including farming, baking, and social commands. This will also provide descriptions for each command so that users can quickly learn how to interact with the bot.

***

### Step 3: Customizing Cookie for Your Server

Cookie offers various customization options to better suit your server’s needs. Server admins can configure the following:

1. **Set an Announcements Channel**
   * Use `/admin set announce` to set a dedicated channel for receiving bot announcements and updates. This ensures that important information about the bot’s features and new releases is shared with your community.
2. **Adjust Server Settings**
   * Admins can view and modify bot settings using `/admin settings`. This allows you to customize features like farming tools, permissions, and plugin preferences for your server.
3. **Level-Up Notifications**
   * To customize level-up messages in your server, use `/admin set level_message` to create custom congratulatory messages. You can also change the channel where these messages appear with `/admin set level_msg_channel`.
4. **Farm Panel Setup**
   * Organize your server’s farming activities by setting up a custom farming panel. Use `/admin set farm_panel` to create a special channel dedicated to farming and ingredient management.

***

### Step 4: Managing Permissions

1. **Bot Permissions**
   * Ensure Cookie has the necessary permissions in your channels, especially if you're using a dedicated bot channel. The bot needs:
     * **Send Messages**
     * **Read Messages**
     * **Embed Links**
     * **Use Slash Commands**

***

### Step 5: Support and Troubleshooting

If you run into any issues during the installation or setup process, Cookie offers several ways to get help:

1. **Support Command**
   * Use `/support` to receive a link to the Cookie support Discord server where you can ask questions and get help from the community and the developers.
2. **Troubleshooting Guide**
   * Refer to the [Troubleshooting](https://github.com/Splashtair/cookie-wiki/wiki/Troubleshooting) page for solutions to common issues, including bot permissions, missing commands, or account-related problems.

***

### Frequently Asked Questions

#### 1. **What permissions does Cookie need?**

Cookie requires permissions to read and send messages, embed links, use slash commands, and (optionally) manage roles for certain features like premium role assignment.

#### 2. **How do I remove Cookie from my server?**

To remove Cookie, right-click the bot’s name in the server member list and select **Kick Cookie**. Alternatively, you can go to your server settings, click **Integrations**, and remove the bot there.

#### 3. **How do I reset the bot if it's not responding?**

If Cookie Bot becomes unresponsive, try using the `/ping` command to check latency. You can also re-invite the bot or contact support if the issue persists.

***

By following this guide, you’ll have Cookie set up and ready to create a fun and engaging cookie economy in your Discord server. For more advanced settings or to explore further features, be sure to check out the full list of commands using `/help`. Happy baking!


---

# 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.cookieapp.ca/user-guidance/installation-guide.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.
