Bots/Ticket Tool

Ticket Tool

by btlfrt12 · 0 clones · 48 views

Invite to Discord

Free Discord Ticket Bot — Open-Source Alternative to Ticket Tool

A lightweight, fully customizable support ticket system for your Discord server. Create ticket panels with buttons, auto-generate private channels, and manage support with role-based permissions.

What's Included

  • /ticket-panel — Deploy a ticket panel with one command
  • Button-based tickets — Users click to open, no reactions needed
  • Private channels — Only the user + Support staff can see each ticket
  • Close confirmations — Prevents accidental closures with auto-cleanup
  • Duplicate prevention — One open ticket per user
  • Auto role creation — Creates a "Support" role automatically

Why Use This Over Ticket Tool?

  • Free forever — No premium tiers, no paywalls
  • Open source — Full source code, MIT licensed
  • Customizable — Add transcripts, categories, claim systems, auto-close, and more
  • No vendor lock-in — You own the bot and the code

View Source on GitHub · Try it live

1

Commands

9

Files

0

Clones

48

Views

2

Servers

6

Members

Source Code

bot.config.json9 lines
1{
2 "botName": "My Discord Bot",
3 "brandColor": "#5865F2",
4 "guildId": "",
5 "channels": {},
6 "roles": {},
7 "modules": {},
8 "_attribution": "Generated with MyDiscordBot.com — https://mydiscordbot.com"
... 1 more lines
package-lock.json657 lines
1{
2 "name": "my-discord-bot",
3 "version": "1.0.0",
4 "lockfileVersion": 3,
5 "requires": true,
6 "packages": {
7 "": {
8 "name": "my-discord-bot",
... 649 more lines
package.json11 lines
1{
2 "name": "my-discord-bot",
3 "version": "1.0.0",
4 "type": "module",
5 "dependencies": {
6 "discord.js": "^14.16.0",
7 "better-sqlite3": "^11.0.0",
8 "dotenv": "^16.4.0"
... 3 more lines
src/bot.config.json9 lines
1{
2 "botName": "My Discord Bot",
3 "brandColor": "#5865F2",
4 "guildId": "",
5 "channels": {},
6 "roles": {},
7 "modules": {},
8 "_attribution": "Generated with MyDiscordBot.com — https://mydiscordbot.com"
... 1 more lines
src/commands/ticket-panel.js54 lines
1// Generated with MyDiscordBot.com — AI-Powered Discord Bot Builder
2// https://mydiscordbot.com
3
4import { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, PermissionFlagsBits } from 'discord.js';
5
6export const data = new SlashCommandBuilder()
7 .setName('ticket-panel')
8 .setDescription('Create a ticket panel for users to open support tickets')
... 46 more lines
src/db.js41 lines
1// Generated with MyDiscordBot.com — AI-Powered Discord Bot Builder
2// https://mydiscordbot.com
3
4import Database from 'better-sqlite3';
5import path from 'path';
6import { fileURLToPath } from 'url';
7
8const __dirname = path.dirname(fileURLToPath(import.meta.url));
... 33 more lines
src/events/interactionCreate.js181 lines
1// Generated with MyDiscordBot.com — AI-Powered Discord Bot Builder
2// https://mydiscordbot.com
3
4import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, ChannelType, PermissionFlagsBits } from 'discord.js';
5
6export const name = 'interactionCreate';
7
8export async function execute(interaction) {
... 173 more lines
src/index.js97 lines
1// Generated with MyDiscordBot.com — AI-Powered Discord Bot Builder
2// https://mydiscordbot.com
3
4import 'dotenv/config';
5import { Client, GatewayIntentBits, Collection, REST, Routes } from 'discord.js';
6import fs from 'fs';
7import path from 'path';
8import { fileURLToPath } from 'url';
... 89 more lines
src/utils/format.js21 lines
1// Generated with MyDiscordBot.com — AI-Powered Discord Bot Builder
2// https://mydiscordbot.com
3
4export function abbreviateNumber(num) {
5 if (num >= 1_000_000_000) return (num / 1_000_000_000).toFixed(1) + 'B';
6 if (num >= 1_000_000) return (num / 1_000_000).toFixed(1) + 'M';
7 if (num >= 1_000) return (num / 1_000).toFixed(1) + 'K';
8 return num.toString();
... 13 more lines

Use this bot

Add it to your Discord server, or clone the source code and customize it.

Invite to Discord