# installation

## 📘 C SERVICE Discord Bot Documentation

Willkommen zur offiziellen Dokumentation des **C SERVICE Discord Bots**. Diese Anleitung hilft dir, den Bot zu installieren, zu konfigurieren und alle verfügbaren Funktionen zu verstehen.

### 🚀 Voraussetzungen

Bevor du den Bot startest, stelle sicher, dass du folgende Voraussetzungen erfüllst:

* **Node.js** (Version 18 oder höher empfohlen)\
  <https://nodejs.org/en>
* **npm** (Node Package Manager)\
  <https://docs.npmjs.com/cli/v9/commands/npm-install>
* **Discord Bot Token** mit den Rechten:
  * `Message Content`
  * `Manage Roles`
  * `Manage Channels`
  * `Send Messages`
* Eine konfigurierte  `config.json` Datei (siehe unten)
* Ein eigener Discord-Server mit **Slash Commands aktiviert**

***

### ⚙️ Installation

```bash
cd "C:\Users\Pfad_to_the_bot\Discord_bot"
npm install
```

***

### 📂 Konfiguration

Bearbeite die Datei `config.json`:

```json
jsonKopierenBearbeiten{
  "settings": {
    "token": "DEIN_DISCORD_BOT_TOKEN",
    "clientId": "DEINE_CLIENT_ID",
    "guildId": "DEINE_GUILD_ID",
    "supportRoles": ["ROLE_ID_1", "ROLE_ID_2"]
  },
  ...
}
```

Du kannst dort auch:

* Support-Rollen festlegen
* Ticket-System aktivieren
* Feedback-Funktionen konfigurieren
* Giveaways steuern
* Update-Meldungen planen
* Statistik-Channels anlegen

***

### ▶️ Starten des Bots

```bash
node index.js
```

Der Bot registriert automatisch die Slash-Befehle und startet alle Module.


---

# 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://c-service.gitbook.io/c-service-docs/discord-bots/support-bot/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.
