Railway

Deploy Pro Ticket Discord Bot

Ticket bot. 3 languages (PT, ES, EN). Web panel for stats, reports & config

Deploy Pro Ticket Discord Bot

Just deployed

Just deployed

/data/db

Deploy and Host Pro Ticket Discord Bot on Railway

Professional Discord bot for ticket management with 30+ slash commands, Steam OAuth verification, dynamic voice channels, welcome DMs, mutual rating system, smart tags, custom fields, HTML transcripts, and scheduled reports. Multi-language: PT-BR, EN-US, ES-ES. One-click deploy — just provide bot token and server ID.

About Hosting Pro Ticket Discord Bot

Hosting Pro Ticket on Railway provides a complete infrastructure with MongoDB, automatic SSL, and on-demand scalability. This template includes pre-configured environment variables and automatic database connection. The deploy configures the bot with all dependencies, making it production-ready in minutes — just provide the Discord bot token and server ID. All other variables (database, collections, API URL) are auto-configured. Steam verification optionally requires Public Networking enabled on port 8080.

Common Use Cases

  • Game Server Support — Tickets categorized by game server (DayZ, Rust, SCUM, etc.), mandatory Steam verification, staff performance tracking, and automatic HTML transcripts
  • Professional Helpdesk — SLA tracking (response/resolution times), staff reports, smart tags, custom fields, announcements, configurable notifications, and scheduled reports (daily/weekly/monthly)
  • Community Management — Dynamic voice channels, welcome DMs, identity verification, mutual user↔staff rating system, behavior tracking, blacklist, and anti-flood protection

Dependencies for Pro Ticket Discord Bot Hosting

  • MongoDB — Stores tickets, settings, users, and verifications (included in template)
  • Node.js >= 20 — Bot runtime (handled automatically by Railway)
  • Discord Bot Token — From Discord Developer Portal (see setup guide below)
  • Discord Client Secret — OAuth2 Client Secret from Discord Developer Portal (see setup guide below)
  • Discord Server ID — The server where the bot will operate (see setup guide below)
  • Steam API Key (optional) — Only for Steam verification image display (get here)

Deployment Dependencies

Implementation Details

Pre-Deploy: Discord Bot Setup

Step 1 — Create Application: Go to Discord Developer Portal → Click "New Application" → Name it (e.g. "My Ticket Bot") → Click "Create".

Step 2 — Configure Bot: In the left menu, click "Bot":

  • Disable "Public Bot" (ensures only you can add the bot to servers)
  • Enable "Server Members Intent" (required for welcome DMs and member detection)
  • Enable "Message Content Intent" (required for ticket activity tracking and anti-flood)
  • Presence Intent is NOT required

Step 3 — Get Bot Token: On the "Bot" page → Click "Reset Token" → Copy and save the token securely. The token is shown only once. Never share it — if compromised, reset it immediately.

Step 4 — Get Client Secret: In the left menu, click "OAuth2""General" → Under "Client Information", click "Reset Secret" (if you don't have one saved) → Copy and save the Client Secret securely. It is shown only once; use it for the variable DISCORD_CLIENT_SECRET. If you lose it, reset the secret again in the portal.

Step 4.1 — OAuth2 Redirect URL (for web panel): After you deploy on Railway, you will add the OAuth2 redirect URL in the Discord Developer Portal so the web panel login works. See Post-Deploy Step 2 below — you need your Railway public domain first.

Step 5 — Invite Bot to Your Server: In the left menu, click "OAuth2" → Under "Scopes", check bot and applications.commands → Under "Bot Permissions", check Administrator → Copy the generated URL at the bottom → Open it in your browser → Select your server → Click "Authorize".

Step 6 — Get Server ID: In Discord: go to User Settings (⚙️) → Advanced → Enable "Developer Mode" → Close settings → Right-click your server icon in the server list → Click "Copy Server ID". Save this number.

Step 7 — Steam API Key (Optional): Only used do see the user's profile image in the Steam verification. Go to steamcommunity.com/dev/apikey → Login → Register a key → Copy it.

Deploy

Click the Deploy button → Set the required variables:

  • BOT_TOKEN — Your bot token (Step 3)
  • DISCORD_CLIENT_SECRET — Your OAuth2 Client Secret (Step 4)
  • GUILD_ID — Your server ID (Step 6)
  • STEAM_API_KEY(Optional) Steam API key (Step 7)

All other variables are pre-configured automatically. Click Deploy and wait 2-5 minutes.

Web panel: After configuring the OAuth2 redirect (Post-Deploy Step 2), open your Railway public URL in the browser to access the web panel. Log in with Discord and use it to view ticket and staff statistics/reports, change bot settings, and manage configuration — in addition to slash commands in Discord.

Post-Deploy Steps

  1. Verify the bot appears online in your Discord server

  2. Configure OAuth2 Redirect (for web panel): The template generates a public URL automatically.

    • Copy the URL in Railway: Open your project → select the Pro Ticket service → SettingsNetworking. The public domain is shown there (e.g. pro-ticket-production-xxxx.up.railway.app). Copy that domain.
    • Add it in Discord: Go to Discord Developer Portal → your application → OAuth2RedirectsAdd Redirect. In the redirect field, paste this URL, replacing YOUR_RAILWAY_DOMAIN with the domain you copied:
      https://YOUR_RAILWAY_DOMAIN/api/auth/discord/callback
      
      Example: if your domain is pro-ticket-abc123.up.railway.app, the redirect must be https://pro-ticket-abc123.up.railway.app/api/auth/discord/callback. Then click Save.
  3. Use /start to run initial setup: select timezone, language (PT-BR/EN-US/ES-ES), ticket category, transcript channel, attachments channel, and staff role

  4. Use /ticket setup-panel in the channel where users should open tickets

  5. (Optional) For Steam verification: in Railway, go to your bot service → Settings → Networking → Public Networking → set port 8080. Then in Discord use /config-verification commands and /config-steam-buttons

  6. (Optional) Configure welcome DMs: /welcome-message

  7. (Optional) Set up auto voice channels: /autovoice add

  8. Explore all commands: /help admin

Key Features Summary

• 🖥️ Web panel — Ticket and staff statistics/reports, bot configuration (login with Discord via your Railway URL) • 🎫 Ticket system: servers, types, tags, custom fields, announcements, invites, auto-close, transcripts • ⭐ Mutual rating (user ↔ staff) with posting channel, filters, and privacy controls • 🔐 Steam OAuth verification with automatic role assignment • 🎙️ Dynamic voice channels (auto-create/delete) + ticket voice support • 🌍 3 languages (PT-BR, EN-US, ES-ES) — Translation files • 📊 Scheduled reports (daily/weekly/monthly) with staff performance metrics • 🔔 Notifications: DM transcripts, inactivity alerts, auto-close alerts, role mentions • 👋 Welcome DM with variables ({user}, {server}, {memberCount}) and images • ⚙️ 30+ commands: /configt, /configr, /configa, /configc, /configtcp, /ticketadm, and more

Why Deploy Pro Ticket Discord Bot on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Pro Ticket Discord Bot on Railway, you are one step closer to supporting a complete full-stack application with minimal burden.

Additional Benefits:

  • Integrated MongoDB — Database configured and connected automatically
  • Automatic SSL/HTTPS — Essential for Steam OAuth callback and web panel login
  • Web panel — View ticket and staff statistics/reports, configure the bot from the browser (login with Discord; requires OAuth2 redirect URL set in Post-Deploy)
  • One-Click Deploy — Pre-configured template with all environment variables
  • Real-Time Logs — Monitor the bot directly from the Railway dashboard
  • 24/7 Uptime — Bot stays online continuously without maintenance

Discord Suport


Template Content

More templates in this category

View Template
Telegram JavaScript Bot
A template for Telegram bot in JavaScript using grammY

Agampreet Singh
View Template
Cobalt Tools [Updated Mar ’26]
Cobalt Tools [Mar ’26] (Media Downloader, Converter & Automation) Self Host

shinyduo
View Template
Whatsmiau
Deploy Whatsmiau on Railway. WhatsApp REST API. One click.

Douglas Rubim