Skip to content

Commit f89dd5d

Browse files
authored
Merge pull request #127 from gitplayer4/en/v2
Update agent.md
2 parents faab504 + 0f91381 commit f89dd5d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

docs/user_manual/ai/agent.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
!!! note ""
227227
Modify the OpenClaw configuration file and add the Discord channel configuration. The minimum configuration is as follows:
228228

229-
'''
229+
```bash
230230
{
231231
"channels": {
232232
"discord": {
@@ -235,12 +235,12 @@
235235
}
236236
}
237237
}
238-
'''
238+
```
239239

240240
!!! note ""
241241
For more advanced configurations (e.g., allowlist, server/channel restrictions, private message settings), you can use the full configuration template as follows. Adjust the parameters according to your actual needs:
242242

243-
'''
243+
```bash
244244
{
245245
"channels": {
246246
"discord": {
@@ -298,7 +298,7 @@
298298
}
299299
}
300300
}
301-
'''
301+
```
302302

303303
!!! note ""
304304
After completing the configuration, enter the "Configuration" page of "Agent" in 1Panel, complete the Discord chat channel configuration, and click "Save", as shown in the figure below:
@@ -312,9 +312,9 @@
312312
!!! note ""
313313
Start the OpenClaw Gateway. When the bot token is available (configuration file takes precedence, environment variable as fallback) and "channels.discord.enabled" is not false, the Discord channel will start automatically. Run the following command to start the Gateway (if not started automatically):
314314

315-
'''
315+
```bash
316316
openclaw gateway
317-
'''
317+
```
318318

319319
!!! note ""
320320
After starting the Gateway, verify whether the configuration is successful by following these steps:
@@ -334,10 +334,10 @@
334334
!!! note ""
335335
If the bot fails to work normally, first run the following commands to perform a quick audit and view warnings:
336336

337-
'''
337+
```bash
338338
openclaw doctor
339339
openclaw channels status --probe
340-
'''
340+
```
341341

342342
#### Common Issues and Solutions
343343

0 commit comments

Comments
 (0)