mpticket

A V13 TICKET SYSTEM

Usage no npm install needed!

<script type="module">
  import mpticket from 'https://cdn.skypack.dev/mpticket';
</script>

README


mpticket


About

If you restart your bot, the system will be reset MPTICKET is a powerful Discord.js module ! With this module you will be able to make a ticket system by mp easily.

  • Ticket System
  • Eeasily
  • Performant
  • Free

Installation

npm install mpticket@latest
yarn add mpticket
pnpm add mpticket

Example usage

Install all required dependencies:

npm install mpticket@latest
yarn add mpticket
pnpm add mpticket

REQUIRED:

const { onPanel, onMessage } = require('mpticket');
 // MODULE

const client = new Client({
  intents: ["DIRECT_MESSAGES"], partials: ["CHANNEL"]
}); // THE MODULE NEED THIS

Afterwards we can create a quite simple example command:

const { onPanel, onMessage } = require('mpticket');
 // MODULE

const client = new Client({
  intents: ["DIRECT_MESSAGES"], partials: ["CHANNEL"]
}); // THE MODULE NEED THIS

 onPanel({
   // OPTIONS
    prefix: "!",
    guildid: "guildid",
    categoryid: "categoryid",
    // EMBEB
        EmbebColor: "RANDOM",
// Close
    CloseMsg: "❌ – Support has marked your query as classified, thanks to you no need to reply after this message",
// Send
    SAMTitle: "It’s done! Sent by",
    SAMDesc: "I sent",
    SMTitle: "Response From",
    // Error
    ErrTicket: "❌ – Error this channel is not a ticket",
// Create
    CTMTitle: "✔️ - Ticket created",
    CTMDesc: "Support will contact you as soon as possible.",
  })

     // CHECK MESSAGE
      client.on('messageCreate', (message) => onMessage(message, client)); 

Commands

To execute a command add the prefix you defined in the panel function before the command name

- close

Allows you to close the ticket (Perform in the ticket lounge)

- send

Allows you to reply to the ticket (Perform in the ticket lounge)

Help

If you don't understand something, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official Support Server.