Evie4 / Ticket-System-DiscordJS

DripLifeRP-Ticket-System | Easy Coded Bot!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ticket System

Discord.JS Ticket System

Discord NodeJS Javascript

Reminder

The code isnt the cleanest, This was a bot for a FiveM server. If you want more opensource bots, just star the project and i will make more!

Setup the bot

Discord Developer Portal

  1. First create a application on the [Developer Portal]
  2. Make your application a bot [Image]

The bot it self!

  1. Change the bot token to your bot token | You can find it under [here]
    You can change the token [here]
  2. When you changed the token, you can simply start up the bot using: "node ." in your terminal!
  • If this gives a error try changing the Intents of your bot at [here]

Features

  • Ticket System (Ticketpanel, Close, Remove, Add, Rename)
  • Mutli Guild Supported
  • Transcript System
  • Interaction (Select Menu, Buttons)
  • Changeable (Messages and Config)
  • Database Models | Getters/Setts/Checkers for database information

Commands

  • Ticketpanel | This creates a panel with a button! | [Example]
  • Close | This closes the ticket and saves the transcript | [Example]
  • Add | Add a mentioned user to the ticket | [Example]
  • Remove| Remove the mentioned user form the channel | [Example]
  • Rename | Rename the channel to the given name. | [Will update soon]
  • Claim | Claims the ticket (Only works with claim button)! | [Example]

Command Handler

module.exports = async(client) => {
const discord = require("discord.js");

module.exports = {
    name: "test",
    description: "Dit is een test commando.",
    perms: {
        client: [discord.Permissions.ADMINISTRATOR],
        user: [discord.Permissions.FLAGS.ADMINISTRATOR]
    },
    aliases: ["test"],

    execute: async(client, message, args) => {
    
    // Code
        
    }
}

About

DripLifeRP-Ticket-System | Easy Coded Bot!


Languages

Language:JavaScript 100.0%