kcommands
v1.1.0
Published
Make Commands Shorter
Downloads
23
Maintainers
Readme
Installation
> npm install kaizcommands
For latest version
> npm install kaizcommands@latest
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)
}
}