-
-
Notifications
You must be signed in to change notification settings - Fork 280
Operations and Maintenance
This page covers routine admin work after Ticket-Bot is installed.
Local install:
bun run startNode.js/npm install:
npm run build
npm run node:startDocker:
docker compose restart botOn restart, the bot deploys commands and syncs panels again.
Local install:
git pull
bun install
bun run drizzle:push
bun run startNode.js/npm install:
git pull
npm install
npm run drizzle:push
npm run build
npm run node:startDocker:
git pull
docker compose up -d --buildAfter updating, check logs for startup validation errors.
Back up:
.data/config/config.tsconfig/.env- customized files under
messages/
The database contains ticket records, panel tracking, close state, claim state, invited users, and transcript URLs.
Commands are deployed on startup to the configured guildId, so updates should appear quickly in that server after a restart.
Panels sync on startup. Ticket-Bot stores panel message IDs in the database and edits those messages on future restarts.
If you delete a panel message manually, the bot creates a new one on next startup.
If you change a panel's channelId, the bot posts in the new channel and updates the tracked record.
After editing config/config.ts, restart the bot.
Common changes that need restart:
- Adding ticket types.
- Editing panels.
- Changing staff roles.
- Changing close behavior.
- Changing message template references.
- Changing presence text.
- Keep the bot token private.
- Use a process manager or Docker restart policy.
- Keep
.data/on persistent storage. - Monitor logs after config changes.
- Test ticket open and close flows after large updates.
- Keep the required Ticket-Bot attribution visible.