# 🤖 Discord Bot

## 🔇 Bot Not Responding

* ✅ **Check Bot Permissions**: Lack of permissions is the most common reason for non-responsiveness.
* 🔍 **Run `/diagnose`**: Use this command to check whether the bot is operational and has the necessary permissions.

## ⚠️ Moderation Module Not Responding

* ✅ **Check Bot Permissions**
* 🔍 **Run `/diagnose`** to identify permission issues or command limitations.

***

## 🛡️ Required Permissions

#### 🔧 Moderation Module Permissions

The bot needs specific permissions to operate the moderation system. If any are missing, the module may not function correctly.

* **Administration** *(Optional but Recommended)*:\
  Granting this overrides the need to manually assign the individual permissions below.

If **Administration** is not enabled, you **must** enable the following **server-wide** permissions:

* `Kick Members` *(Required)*
* `Ban Members` *(Required)*
* `Moderate Members` *(Required)*
* `Manage Messages` *(Required)*

{% hint style="success" %}
You can use command `/diagnose` to check which feature/module is eligible to use in your server
{% endhint %}

{% hint style="warning" %}
**NYX cannot moderate members who have a higher or equal role position.** Make sure the bot’s highest role is placed **above** the roles of any members you want it to moderate.
{% endhint %}

***

#### 🧠 AI Channel Module Permissions

The AI module requires specific **channel-level** permissions to ensure message handling and response functionalities.

* **Administration** *(Optional but Recommended)*:\
  If this is enabled, the bot will inherit all necessary permissions without individual assignment.

If **Administration** is not enabled, enable the following **per-channel** permissions:

* `Send Messages` *(Required)*
* `Read Message History` *(Required)*
* `View Channel` *(Required)*
* `Embed Links` *(Required)*
* `Use External Stickers` *(Required)*
* `Use External Emojis` *(Required)*
* `Add Reactions` *(Required)*
* `Attach Files` *(Required)*
