Skip to content

Zymart/ticketing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

45 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›’ Advanced Order & Shop Bot - Complete Business Solution

The most advanced Discord bot for managing orders, shop systems, and real item trading with Railway deployment support.

โœจ Latest Features

๐ŸŽฏ Smart Order System

  • Form Examples: Customers see helpful examples in order forms
  • Ongoing Orders: Shows only unclaimed orders (disappears when claimed)
  • Order Tracking: Orders โ†’ Ongoing โ†’ Claimed โ†’ Received workflow
  • User-Based Naming: Channels named order-customername

๐Ÿ›๏ธ Real Item Marketplace

  • Real Trading: Buy/sell actual Roblox items, game accounts, skins
  • Shop Categories: Roblox, Fortnite, Minecraft, Steam, etc.
  • Purchase Channels: Private channels for each purchase
  • Trade System: Player-to-player trading with middleman protection

๐Ÿ’พ Persistent Database

  • PostgreSQL: When deployed to Railway (data survives redeploys)
  • JSON Fallback: When running locally
  • Auto-Detection: Bot chooses best storage automatically

๐ŸŽ›๏ธ Admin Customization

  • Panel Templates: Gaming, Digital, Services presets
  • Custom Panels: Fully customizable order panels
  • Shop Management: Add/remove items with commands

๐Ÿ†” Understanding IDs

CLIENT_ID

  • What: Your Discord Application ID
  • Where: Discord Developer Portal โ†’ Your App โ†’ General Information โ†’ Application ID
  • Example: 1234567890123456789

GUILD_ID

  • What: Your Discord Server ID
  • Where: Right-click your Discord server โ†’ Copy ID (need Developer Mode on)
  • Example: 9876543210987654321

๐Ÿš€ Railway Deployment

Step 1: Setup Bot

  1. Go to https://discord.com/developers/applications
  2. Create application โ†’ Create bot
  3. Copy Bot Token and Application ID

Step 2: Deploy to Railway

  1. Fork this GitHub repository
  2. Connect to Railway.app
  3. Create project โ†’ Deploy from GitHub
  4. Add environment variables:
    DISCORD_TOKEN=your_bot_token
    CLIENT_ID=your_application_id
    GUILD_ID=your_server_id
    OWNER_ID=730629579533844512
    

Step 3: Setup in Discord

!setup status                           # Check configuration
!setup category 123456789012345678      # Ticket category
!setup support 123456789012345678       # Support role
!setup logs 123456789012345678          # Log channel
!setup orders 123456789012345678        # New orders channel
!setup received 123456789012345678      # Completed orders
!setup ongoing 123456789012345678       # Unclaimed orders
!setup admin add 123456789012345678     # Add staff
!panel template gaming                  # Choose template
!panel create                           # Create order panel
!shop panel                             # Create shop panel

๐Ÿ“ File Structure

advanced-order-bot/
โ”œโ”€โ”€ index.js                          # Main bot file
โ”œโ”€โ”€ config.json                       # Configuration
โ”œโ”€โ”€ package.json                      # Dependencies
โ”œโ”€โ”€ railway.json                      # Railway settings
โ”œโ”€โ”€ deploy-commands.js                # Command deployment
โ”œโ”€โ”€ .env.example                      # Environment template
โ”œโ”€โ”€ Dockerfile                        # Docker support
โ”œโ”€โ”€ README.md                         # This file
โ”œโ”€โ”€ commands/
โ”‚   โ”œโ”€โ”€ setup.js                      # Bot setup
โ”‚   โ”œโ”€โ”€ ticket.js                     # Order management
โ”‚   โ”œโ”€โ”€ admin.js                      # Admin utilities
โ”‚   โ”œโ”€โ”€ panel.js                      # Panel customization
โ”‚   โ””โ”€โ”€ shop.js                       # Shop management
โ”œโ”€โ”€ events/
โ”‚   โ”œโ”€โ”€ ready.js                      # Bot startup
โ”‚   โ””โ”€โ”€ interactionCreate.js          # Interactions
โ”œโ”€โ”€ systems/
โ”‚   โ”œโ”€โ”€ ticketSystem.js               # Order system
โ”‚   โ”œโ”€โ”€ database.js                   # Database system
โ”‚   โ””โ”€โ”€ shopSystem.js                 # Shop & trading
โ””โ”€โ”€ data/ (auto-created)
    โ”œโ”€โ”€ tickets.json                  # Active tickets
    โ”œโ”€โ”€ orders.json                   # Order history
    โ””โ”€โ”€ shop_items.json               # Shop items

๐ŸŽฎ Commands

๐Ÿ”ง Setup (Owner Only)

!setup category <id>        # Set ticket category
!setup support <id>         # Set support role
!setup logs <id>           # Set log channel
!setup orders <id>         # Set orders channel
!setup received <id>       # Set received channel
!setup ongoing <id>        # Set ongoing channel
!setup admin add <id>      # Add admin
!setup status              # Show config

๐ŸŽ›๏ธ Panel Management (Admins)

!panel create [channel]     # Create order panel
!panel template gaming     # Use gaming template
!panel template digital    # Use digital template
!panel template services   # Use services template
!panel preview             # Preview panel
!panel reset              # Reset to default

๐Ÿ›๏ธ Shop Management (Admins)

!shop panel [channel]                                    # Create shop panel
!shop add-item Name | 50 | Roblox | Description | 5 | URL  # Add item
!shop list                                              # List items
!shop stats                                             # Shop statistics

๐ŸŽซ Order Management (Admins)

!ticket panel [channel]    # Create ticket panel
!ticket close             # Force close order
!ticket add @user         # Add user to order
!ticket remove @user      # Remove user

๐Ÿ‘‘ Admin Utilities

!admin info               # Bot statistics
!admin say <message>      # Make bot speak
!admin embed Title | Desc # Create embed
!admin clean <amount>     # Delete messages

๐ŸŽฏ How It Works

Order Workflow

  1. Customer clicks "Place Your Order"
  2. Form appears with helpful examples
  3. Private channel created as order-customername
  4. Ongoing channel shows unclaimed order
  5. Staff clicks "Claim Order"
  6. Order disappears from ongoing
  7. Orders channel shows "being processed"
  8. Staff clicks "Mark Completed"
  9. Received channel celebrates completion

Shop System

  1. Browse shop by categories
  2. Select item to purchase
  3. Purchase channel created automatically
  4. Staff processes payment
  5. Item delivered securely

Trading System

  1. Create trade request with forms
  2. Trade channel created for both users
  3. Middleman service available
  4. Secure trading environment

๐Ÿ’ผ Perfect For

๐ŸŽฎ Gaming Services

  • Roblox Limiteds trading
  • Game account sales
  • In-game currency
  • Rank boosting services

๐Ÿ’ป Digital Products

  • Software licenses
  • Social media accounts
  • Streaming subscriptions
  • Digital downloads

๐ŸŽจ Professional Services

  • Graphic design
  • Website development
  • Content creation
  • Custom programming

๐Ÿ”’ Security Features

  • Private Channels: Each order gets private discussion
  • Role Permissions: Only staff can manage orders
  • Data Persistence: Orders saved even if bot restarts
  • Middleman Trading: Safe trading with staff oversight
  • Audit Logs: Complete activity tracking

๐Ÿ“Š Business Benefits

  • Professional Image: Custom branded panels
  • Automated Workflow: Orders processed efficiently
  • Customer Tracking: Complete order history
  • Staff Management: Clear role assignments
  • Social Proof: Public completion celebrations
  • Scalable System: Handles high order volumes

๐Ÿ› ๏ธ Environment Variables

Variable Required Description
DISCORD_TOKEN โœ… Bot token from Discord Developer Portal
CLIENT_ID โœ… Discord Application ID
GUILD_ID โœ… Discord Server ID
OWNER_ID โœ… Your Discord User ID
DATABASE_URL โŒ PostgreSQL URL (Railway provides automatically)

๐Ÿ› Troubleshooting

โŒ "Bot is not configured yet!"

!setup status    # See what's missing
# Configure all 6 channels + support role

โŒ CLIENT_ID/GUILD_ID Issues

  • CLIENT_ID = Application ID from Developer Portal
  • GUILD_ID = Server ID (right-click server, Copy ID)
  • Both are 18-19 digit numbers

โŒ Ongoing orders not updating

  • Fixed: Now shows only unclaimed orders
  • Orders disappear when claimed by staff
  • Check !setup status for missing channels

โŒ Railway deployment fails

  • Check all environment variables are set
  • Verify GitHub repository has all files
  • Check Railway logs for specific errors

๐ŸŽ‰ Success Tips

๐Ÿ“ˆ Optimize Your Business

  • Use appropriate panel template for your niche
  • Set up all 6 channels for complete tracking
  • Train staff on claim/complete workflow
  • Monitor ongoing orders regularly

๐Ÿ’ฐ Maximize Revenue

  • Showcase completed orders in received channel
  • Use shop system for instant purchases
  • Offer middleman trading services
  • Maintain professional customer service

โšก Scale Efficiently

  • Add multiple admins for coverage
  • Use admin commands for quick management
  • Leverage persistent database for reliability
  • Monitor shop statistics for insights

๐Ÿ“ž Support

  • Issues: Create GitHub issues for bugs
  • Features: Request new features via issues
  • Setup Help: Follow this README step-by-step
  • Custom Development: Available for hire

๐Ÿš€ Ready to Launch?

  1. Deploy to Railway (10 minutes)
  2. Setup Discord channels (15 minutes)
  3. Configure panels & shop (10 minutes)
  4. Start taking orders! (immediately)

๐Ÿ’ฐ Complete business system ready in under 45 minutes!

๐ŸŽฏ Most advanced Discord order & shop bot available - start your business today!

About

asdasdadasdasda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published