> For the complete documentation index, see [llms.txt](https://xeinmod.gitbook.io/xeinmod-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeinmod.gitbook.io/xeinmod-wiki/bot-configuration/setup-ticket-system.md).

# Setup ticket system :

## How to setup the ticket system ?

1. Setup the [category](#category) in which the tickets will be created. <mark style="color:green;">(Required)</mark>
2. Setup the [channel](#logs-channel) in which tickets logs will be sent. <mark style="color:orange;">(Optional)</mark>
3. Enable ticket [logs](#enable-ticket-logs). <mark style="color:orange;">(Optional)</mark>
4. Setup the [limit](#undefined) of ticket per user. <mark style="color:orange;">(Optional)</mark>
5. [Initialize](#undefined) ticket feature. <mark style="color:green;">(Required)</mark>

## Category :

Execute the following command to setup the category in which the ticket will be created :&#x20;

`!ticket setCategory <categoryID>`

<table><thead><tr><th>Argument</th><th>Explanation</th><th>Required</th><th data-hidden></th></tr></thead><tbody><tr><td>CategoryID</td><td>Category in which the ticket will be created.</td><td>Required</td><td></td></tr></tbody></table>

## Logs channel :

{% hint style="warning" %}
**Important :** if you want that tickets information and ticket transcript will be sent in the channel you have set up, logs feature need to be enabled.
{% endhint %}

Execute the following command to setup the channel in which the information of the ticket will be sent (such as ticket transcript) :

`!ticket setChannel <ChannelID>`

| Argument  | Explanation                                             | Required |
| --------- | ------------------------------------------------------- | -------- |
| ChannelID | Channel in which the ticket’s information will be sent. | Required |

## Enable ticket logs :

{% hint style="danger" %}
**Warning :** In spite of ticket logs are enabled, you also have to enable logs feature.           To enable logs, execute the following command : `!logs enable`&#x20;
{% endhint %}

Execute the following command to enable or disable ticket logs in your server :&#x20;

`!ticket logsenable` : Enable ticket logs.\
`!ticket logsdisable`: Disable ticket logs.

## Ticket limit per user :

{% hint style="info" %}
**NB :** by default, the ticket limit per user is 1.
{% endhint %}

Execute the following command to setup the maximum number of ticket per user.\
`!ticket setMax [number]`

| Argument | Explanation               | Required |
| -------- | ------------------------- | -------- |
| number   | Limit of ticket per user. | Required |

## Initialize ticket feature :

{% hint style="warning" %}
Important : this command need to be executed in the channel in which you want you user to interact with the bot.
{% endhint %}

Execute the following command to initalize the ticket feature : \
`!ticket init`

## Ticket system is now functional !&#x20;

Some other commands concerning ticket are available. A dedicated page will be created as soon as possible, while it is not, you can have more information about them by executing the following command : \
`!ticket help`
