# KAOS Discord Bot

These commands below must be executed in the designated channel monitored by the KAOS bot. Once processed, KAOS will handle the delivery to the player.

{% embed url="<https://bot.ka0s.uk/docs/log-parser/>" %}

## How to Connect Kaos with Tip4Serv?

1. Create a new Discord channel for deliveries and logs (for example: `kaos-parser`).
2. Make sure the [Tip4Serv bot has permission to send messages](https://docs.tip4serv.com/discord-setup/discord-bot#why-are-the-messages-not-sent-in-the-chanel) in this channel.
3. Make sure the [Tip4Serv bot has permission to give a role](https://docs.tip4serv.com/discord-setup/discord-bot#why-are-the-messages-not-sent-in-the-chanel) to a member.
4. Execute this KAOS BOT command: `/admin-channels`
5. Click "**Set Channel"** button.
6. Select the **"Transactions"** channel when asked.
7. Provide the **channel name or channel id** when asked, then click **submit**.

Tip4Serv will send transaction logs in this channel and Kaos will read these logs and automatically deliver purchases to your players.

{% hint style="info" %}
*The above procedure is only required once. Once the transactions channel has been set, it does not need setting again.*
{% endhint %}

### Why hasn’t my stuff been delivered?

Make sure the Tip4Serv bot has permission to send messages in your delivery channel (example: `kaos-parser`).

Follow this guide to enable the necessary permissions:

{% embed url="<https://docs.tip4serv.com/discord-setup/discord-bot#why-are-the-messages-not-sent-in-the-chanel>" %}

### **How to give Items, Kits, and Points?**

The **KAOSBOT Log Parser Generator** helps you generate commands for **Tip4Serv** more easily:

{% embed url="<https://bot.ka0s.uk/parser-generator/>" %}

**Give an Item to the player:**

```
[KAOS][ADD][<@{discord_id}>][SERVER]=[ITEM][ITEM_NAME][QUANTITY]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][ADD][<@{discord_id}>][1]=[ITEM][rifle.ak][{quantity}]
```

**Give a Kit to the player:**

```
[KAOS][ADD][<@{discord_id}>][SERVER]=[KIT][KIT_NAME][QUANTITY]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][ADD][<@{discord_id}>][1]=[KIT][elitekit5][{quantity}]
```

**Add Points:**

```
[KAOS][ADD][<@{discord_id}>][SERVER]=[POINTS][QUANTITY]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][ADD][<@{discord_id}>][1]=[POINTS][{quantity}*5000]
```

### **How to add a customer to a list?**

**Add to ZORPLIST:**

```
[KAOS][ADD][<@{discord_id}>][SERVER]=[ZORPLIST]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][ADD][<@{discord_id}>][1]=[ZORPLIST]
```

**Remove from ZORPLIST:**

```
[KAOS][DEL][<@{discord_id}>][SERVER]=[ZORPLIST]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][DEL][<@{discord_id}>][1]=[ZORPLIST]
```

**Add to KITLIST:**

```
[KAOS][ADD][<@{discord_id}>][SERVER]=[KITLIST][KITNAME]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][ADD][<@{discord_id}>][1]=[KITLIST][elitekit]
```

**Remove from KITLIST:**

```
[KAOS][DEL][<@{discord_id}>][SERVER]=[KITLIST][KITNAME]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][DEL][<@{discord_id}>][1]=[KITLIST][elitekit]
```

**Add to RIDERSLIST:**

```
[KAOS][ADD][<@{discord_id}>][SERVER]=[RIDER]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][ADD][<@{discord_id}>][1]=[RIDER]
```

**Remove from RIDERSLIST:**

```
[KAOS][DEL][<@{discord_id}>][SERVER]=[RIDER]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][DEL][<@{discord_id}>][1]=[RIDER]
```

### **Wipe Claims**

**Wipe KITLIST Claims:**

```
[KAOS][ADD][<@{discord_id}>][SERVER]=[CLAIMWIPE][KIT_NAME]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][ADD][<@{discord_id}>][1]=[CLAIMWIPE][elitekit]
```

### **How to give VIP?**

**Add VIP:**

```
[KAOS][ADD][<@{discord_id}>][SERVER]=[VIP]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][ADD][<@{discord_id}>][1]=[VIP]
```

**Remove VIP:**

```
[KAOS][DEL][<@{discord_id}>][SERVER]=[VIP]
```

```
Example to use in the Tip4Serv product editor command:
[KAOS][DEL][<@{discord_id}>][1]=[VIP]
```

### **Supported Arguments**

**\[SERVER]**

* **Specific Server:** `[1]`
* **All Servers:** `[ALL]`
* **Multiple Servers:** `[1,2,3,6]`

**\[KIT\_NAME]**

* Example: `[elitekit]`, `[elitekit5]`
* Arrays also work: `[elitekit, elitekit2, elitekit7]`

**\[ALL]**

* Use `[ALL]` where applicable to target everything.


---

# 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.tip4serv.com/games/rust-console-edition/kaos-discord-bot.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.
