You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ chmod +x start.sh
79
79
> Because this bot reads chat commands (`!weather`), you **must** enable the **Message Content Intent**.
80
80
> Go to the [Discord Developer Portal](https://discord.com/developers/applications) -> Your Bot -> **Bot** tab -> Scroll down to **Privileged Gateway Intents** -> Turn ON **Message Content Intent**.
81
81
82
-
### 🌐 Running on Alternative Ports (Local Overrides)
82
+
### 🐳 Docker Overrides (Custom API Ports & Local IPs)
83
83
If port `8080` is already in use on your host machine, or you need to mount local development variables without modifying tracked Git files, you can use a `docker-compose.override.yml` file.
84
84
85
85
Create a file named `docker-compose.override.yml` in the root directory:
@@ -92,9 +92,12 @@ services:
92
92
volumes:
93
93
- ./secrets.env:/app/secrets.env
94
94
extra_hosts:
95
-
- "n8n.local:192.168.1.102"# Map internal local LAN domains
95
+
- "n8n.lan:192.168.1.102"# Map internal local LAN domains
96
96
```
97
-
97
+
98
+
> **💡 Missing Slash Commands?**
99
+
> Discord aggressively caches Slash Commands on desktop and mobile clients. If you start the bot and don't immediately see your `/commands` in Discord, completely restart your Discord app (CTRL+R on desktop) to clear the cache.
100
+
98
101
---
99
102
100
103
## ⚙️ Configuration File (`routes.json`)
@@ -131,6 +134,24 @@ Commands map a typed Discord message to a webhook URL.
131
134
* **Supported Methods:** Both `"POST"` and `"GET"` are supported.
132
135
* **GET Requests:** If you choose `GET`, the entire JSON payload is stringified and passed as a URL query parameter (e.g., `?payload={"source":"discord", ...}`).
133
136
137
+
### ⌨️ Automatic Slash Commands
138
+
139
+
Whenever you add a new command to `routes.json`, DashCord will automatically register it as a native Discord Slash Command (e.g., `/ping`).
140
+
141
+
Users can trigger it by typing the traditional prefix (`!ping restart`) OR by using the Discord slash menu (`/ping arguments: restart`).
142
+
- **Permissions:** The bot respects your `allowed_users` and `allowed_channels` rules even when triggered via Slash Commands.
143
+
- **Descriptions:** You can add a `"description"` key to your command config to customize what shows up in the Discord Slash Command menu!
0 commit comments