v1.2.1
- added the option to remove credits - fixed the bug where ticket_system crashes the bot - in the help menu is now the correct prefix displayed
This commit is contained in:
@@ -11,9 +11,14 @@ module.exports = () => {
|
||||
if (args[0] == config.prefix+"ticket" && (args[1] == undefined ||args[1] == "" ||args[1] == null)){
|
||||
var TicketHelpMsg = new discord.MessageEmbed()
|
||||
.setColor(config.main_color)
|
||||
.setDescription("**Go to <#"+config.system.ticket_channel+"> to create a ticket!**\n\n`!ticket msg` ➜ _Admin command._\n`!ticket rename` ➜ _Rename a ticket (no spaces)._\n`!ticket close` ➜ _Close a ticket._\n`!ticket add <user>` ➜ _Add a user to the ticket._\n`!ticket remove <user>` ➜ _Remove a user from the ticket._")
|
||||
.setTitle("Ticket commands")
|
||||
.setFooter("OpenTicket by DJdj Development | view on github")
|
||||
|
||||
const prefix = config.prefix
|
||||
TicketHelpMsg.setDescription("**Go to <#"+config.system.ticket_channel+"> to create a ticket!**\n\n`"+prefix+"ticket msg` ➜ _Admin command._\n`"+prefix+"ticket rename` ➜ _Rename a ticket (no spaces)._\n`"+prefix+"ticket close` ➜ _Close a ticket._\n`"+prefix+"ticket add <user>` ➜ _Add a user to the ticket._\n`"+prefix+"ticket remove <user>` ➜ _Remove a user from the ticket._\n`"+prefix+"resetdatabase` ➜ _Steps to reset the database._")
|
||||
|
||||
if (config['credits_please-do-not-remove']){
|
||||
TicketHelpMsg.setFooter("OpenTicket by DJdj Development | view on github for source code")
|
||||
}
|
||||
|
||||
msg.channel.send({embeds:[TicketHelpMsg]})
|
||||
}
|
||||
|
||||
@@ -52,8 +52,8 @@ module.exports = () => {
|
||||
var ticketName = config.options.ticket4.channel_prefix+ticketNumber
|
||||
}
|
||||
|
||||
if (config.ticket_system.enable_category){
|
||||
var Category = config.ticket_system.ticket_category
|
||||
if (config.system.enable_category){
|
||||
var Category = config.system.ticket_category
|
||||
}else{var Category = null}
|
||||
|
||||
interaction.guild.channels.create(ticketName,{
|
||||
|
||||
Reference in New Issue
Block a user