# Configuration

In diesem Artikel wird dir die Benutzung des Discord Bots <mark style="color:blue;">Ticket System</mark> beschrieben.

## 1. Bot Daten

In der <mark style="color:yellow;">Config.js</mark> musst du nun deinen Discord Bot Token angeben, und weitere Informationen.

```javascript
config.bot = {
    token: "", // Bot Token (https://discord.com/developers)
    guildId: "",
    license: "",
    activity_enabled: true, // If disabled Bot wont override Activity (if multiple Bots are running on same Token)
    activitys: [
        {
            name: "",
            type: "Watching",
            status: "idle",
        },
        {
            name: "",
            type: "Playing",
            status: "online",
        },
    ],
    intervall: 10 * 1000, // Intervall of Activity Change
};
```

## 2. Database Setup   &#x20;

In der <mark style="color:yellow;">Config.js</mark> musst du deine [<mark style="color:blue;">MySQL</mark>](https://www.mysql.com/de/) Datenbank angeben.

```javascript
config.database = {
    mysql: {
        host: "",
        user: "",
        password: "",
        database: ""
    }
};
```

## 3. Ticket Panel

Hier findest du alle Einstellungsmöglichkeiten des Ticket Panels

```javascript
config.ticketmenu = {
    type: 1, // 0 ist für Buttons & 1 ist für ein Select Menu
    maxTickets: 5, // The maximum number of tickets a user can open at the same time.
    title: "",
    description: "",
    placeholder: "",
    color: "#",
    image: "",
    banner: "",
    author: {
        name: "",
        iconURL: "",
        url: ""
    },
    footer: {
        text: "",
        iconURL: ""
    },
    timestamp: true,
}
```

## 4. Ticket Kategorien

Hier findest du alle Einstellungsmöglichkeiten der Ticket Kategorien (Max 25)

```javascript
config.categorys = [
    // To add more categorys, just copy the code below and paste it above the last category.
    {
        name: "",
        description: "",
        emoji: "",
        categoryid: "",
        ticket: {
            name: "ticket-{username}",
            topic: "{userid}",
            pinguser: true,
            pingstaff: false, // false to disable
            perms: ["RoleID", "RoleID"],
            embed: {
                title: "",
                description: "",
                image: "",
                color: "#",
                author: {
                    name: "",
                    iconURL: "",
                    url: ""
                },
                footer: {
                    text: "",
                    iconURL: ""
                },
                timestamp: true,
            }
        }
    },
]
```

## 5. Ticket Feedbacks

Hier findest du alle Einstellungsmöglichkeiten des Feedbacks System

{% tabs %}
{% tab title="Settings" %}

```javascript
config.feedback = {
    enabled: true,
    autoCloseFeedback: false, // ask for Feedback When User Didnt Responsed Ticket
    voiceCounter: {
        enabled: true,
        name: "Bewertung {counter}/5",
        channel: ""
    },
    textChannel: {
        enabled: true,
        channel: ""
    },
    emojis: {
        starEmoji: "",
        emptyEmoji: "",
    },
}
```

{% endtab %}

{% tab title="Select Menu" %}

```javascript
config.feedback = {
    selectmenu: {
        placeholder: "",
        options: [
            {
                label: "⭐",
                value: "star_1"
            },
            {
                label: "⭐⭐",
                value: "star_2"
            },
            {
                label: "⭐⭐⭐",
                value: "star_3"
            },
            {
                label: "⭐⭐⭐⭐",
                value: "star_4"
            },
            {
                label: "⭐⭐⭐⭐⭐",
                value: "star_5"
            },
        ]
    },
}
```

{% endtab %}

{% tab title="Modal" %}

```javascript
config.feedback = {
    modal: {
        title: "",
        question: {
            id: "q1",
            label: "",
            max: 200,
            min: 5,
            placeholder: "",
            required: true,
            style: 2 //1 => short, 2 => paragraph
        },
    },
};
```

{% endtab %}

{% tab title="User Embed" %}

```javascript
config.feedback = {
    userEmbed: {
        color: "#",
        author: {
            name: "",
            iconURL: "{guild_icon}"
        },
        title: false,
        description: "",
        footer: {
            text: "",
            iconURL: false
        },
        timestamp: false,
        thumbnail: "{guild_icon}",
        image: false
    },
}
```

{% endtab %}

{% tab title="Log Embed" %}

```javascript
config.feedback = {
    logEmbed: {
        title: "",
        description: "",
        color: "#",
        image: "",
        banner: "",
        author: {
            name: "",
            iconURL: "",
            url: ""
        },
        footer: {
            text: "",
            iconURL: ""
        },
        timestamp: true, // If true the Embed will have a Timestamp
    },
};
```

{% endtab %}
{% endtabs %}

## 6. Ticket Auto Close

Hier findest du alle Einstellungsmöglichkeiten des Auto Close System

```javascript
config.autoclose = {
    deleteAfterNoResponse: 5 * 60 * 1000,
    messageReminderTimeout: 1 * 60 * 1000,
    checkIntervall: 30 * 1000,
    dontWarnIfLastMessageSentByTicketAuthor: false,
    embed: {
        title: "",
        description: "",
        color: "#",
        image: "",
        banner: "",
        author: {
            name: "",
            iconURL: "",
            url: ""
        },
        footer: {
            text: "",
            iconURL: ""
        },
        timestamp: false, // If true the Embed will have a Timestamp
    },
};
```

## 7. Ticket Reminder

Hier findest du alle Einstellungsmöglichkeiten des Feedbacks System

```javascript
config.reminder = {
    embed: {
        title: "", // Title of Embed
        description: "", // Description of Embed
        color: "#", // Color of Embed
        image: "", // Image of Embed
        banner: "", // Banner of Embed
        author: {
            name: "", // Name of Author
            iconURL: "", // Icon of Author
            url: "" // URL of Author
        },
        footer: {
            text: "", // Text of Footer
            iconURL: "" // Icon of Footer
        },
        timestamp: false, // If true the Embed will have a Timestamp
    },
};
```

## 8. Discord Logs

Hier findest du alle Einstellungsmöglichkeiten für die Discord Logs.

{% tabs %}
{% tab title="After Ticket Open" %}

```javascript
config.logs = {
    ticketopen: {
        enabled: true,
        channel: "",
            title: "",
            description: "",
            color: "#",
            fields: [
                {
                    name: "",
                    value: "",
                    inline: true
                },
                {
                    name: "",
                    value: "",
                    inline: true
                },
                {
                    name: "",
                    value: "",
                    inline: true
                }
            ],
            timestamp: true

    },
}
```

{% endtab %}

{% tab title="Atfer Ticket Close" %}

```javascript
config.logs = {
    ticketclose: {
        enabled: true,
        transscripts: true,
        sendTransscriptDM: true,
        channel: "",
            title: "",
            description: "",
            color: "#",
            fields: [
                {
                    name: "",
                    value: "",
                    inline: true
                },
                {
                    name: "",
                    value: "",
                    inline: true
                },
                {
                    name: "",
                    value: "",
                    inline: true
                }
            ],
            timestamp: true
    },
}
```

{% endtab %}

{% tab title="Feedback" %}

```javascript
config.logs = {
    feedback: {
        enabled: false,
        channel: "",
            title: "",
            description: "",
            color: "#",
            fields: [
                {
                    name: "",
                    value: "",
                    inline: true
                },
                {
                    name: "",
                    value: "",
                    inline: true
                }
            ],
            timestamp: true
    }
}
```

{% endtab %}
{% endtabs %}

***

{% content-ref url="/pages/lKRNsva5M0GbUsyPMfXE" %}
[Broken mention](broken://pages/lKRNsva5M0GbUsyPMfXE)
{% endcontent-ref %}


---

# 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://doku.xtream-itsolutions.com/discord-bots/ticket-system/configuration.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.
