kcommands

Make Commands Shorter

Usage no npm install needed!

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

README

Installation

> npm install kaizcommands

For latest version

> npm install kaizcommands@latest

NPM Info

Functions

KCommandsTicketSystem:: Create ticket

KCommandsTicketSystem

const { KCommandsTicketSystem } = require('KCommands')

//change to your commands handler
module.exports = {
    name: "openticket",
    aliases: ['ticket', 'open']
    run: async (client, message, args) => {
        const ticket = new KCommandsTicketSystem({
            //setup
            //send this message in channel use command
            channelmsg: "Hi, your ticket is {channelMentions}", // {channelMentions} = #channelname, {channelName} = channel name, {channelID} = channel_id
            // send this message in ticket when create
            ticketmsg: "Hello {userMentions}, how can we help you", // {userMentions} = @username, {userName} = username, {userID} = user_id
            ticketname: `ticket-${message.author.tag}`, //ticket name
            lock: "🔒", //lock emoji emoji
            delete: "â›”", //delete ticket emoji
            transcript: true, // send transcript when lock ticket
            transcriptchannelid: "859259154690605107", // send transcript in channel with id
        })
        ticket.openTicket(client, message)  //create new ticket, options are client (your client in index.js) and message (keep this, DO NOT CHANGE)
    }
}