Skip to content

Commit bc4c12c

Browse files
authored
Merge branch 'master' into master
2 parents 8bdee5e + e2878ed commit bc4c12c

File tree

5 files changed

+3
-15
lines changed

5 files changed

+3
-15
lines changed

.git-blame-ignore-revs

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"scripts": {
88
"create": "hugo new",
99
"dev": "hugo server --disableFastRender --noHTTPCache",
10-
"format": "prettier **/** -w -c",
1110
"build": "hugo --minify --gc && npm run highlight",
1211
"highlight": "node scripts/highlight.mjs",
1312
"preview": "vite preview --outDir public",

0 commit comments

Comments
 (0)