Troubleshooting
Quick diagnostics and safe recovery steps for parser, permissions, and advanced module setup.
Parser errors
- Make sure your script has a top-level function main().
- Load modules explicitly with use(...).
- Add fallback guards before reading API response fields.
text
Run parser diagnostics:!parser test
Then retry a minimal script:!parser ```function main() { ctx.reply("ok");}```Permission failures
- Check role hierarchy: bot role must be above managed roles.
- Check channel overrides: read/send/manage perms may be denied at channel level.
- Re-run module status command after permission changes.
text
Permission verification commands:!security show!tickets setup!leveling statusModule setup pitfalls
- Security too strict for small servers: lower thresholds first.
- Ticket transcripts missing: verify transcript channel visibility.
- Level rewards not applied: check role hierarchy and ignore list overlap.
Safe recovery checklist
- Disable only the failing submodule.
- Keep logs enabled while testing fixes.
- Apply one config change at a time.
- Verify with a controlled test action.
- Document final working values in mod notes.