Skip to content

Commit 0acf6a7

Browse files
authored
reference: document execCC limits (#84)
* added per channel per minute note * add details to functions page
1 parent 7a7e824 commit 0acf6a7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

content/docs/reference/custom-commands-limits.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Various limits in YAGPDB custom commands (CC) for smooth functioning of the bot
2424
- **Calls per CC:** 1/10 (free/prem) -> counter key "runcc"
2525
- **StackDepth limit:** 2 (executing with 0 delay)
2626
- **Delay limit:** int64 limit (292 years)
27+
- **Channel limit:** 10 executions per channel, per minute
2728

2829
### scheduleUniqueCC
2930

content/docs/reference/templates/functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ Executes another custom command specified by `ccID`.
479479
- `data`: some arbitrary data to pass to the executed custom command.
480480

481481
Calling `execCC` with 0 delay sets `.StackDepth` to the current recursion depth and limits it to 2.
482+
`execCC` is rate-limited strictly to a maximum of 10 delayed custom commands executed per channel per minute. Executions
483+
beyond this number will be dropped.
482484

483485
##### Example
484486

0 commit comments

Comments
 (0)