2 files changed
+11
No files matched your search
@@ -22,6 +22,15 @@ module.exports = {
|
|||||||
if (supportbot.DeleteMessages == "true") message.delete();
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let reactionUser = message.guild.members.cache.get(message.author.id)
|
||||||
|
|
||||||
|
if (reactionUser.roles.cache.find(role => role.name === supportbot.TicketBlackListRole) || reactionUser.roles.cache.find(role => role.id === supportbot.TicketBlackListRole)) {
|
||||||
|
return message.channel.send(`<@${message.author.id}> ${supportbot.TicketBlackListMessage}`).then(msg => {
|
||||||
|
msg.delete({timeout: 3500})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.NewTicket}!`);
|
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.NewTicket}!`);
|
||||||
|
|
||||||
// Ticket ID
|
// Ticket ID
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ LockdownRole: "@everyone"
|
|||||||
|
|
||||||
Staff: "Staff"
|
Staff: "Staff"
|
||||||
Admin: "Administration"
|
Admin: "Administration"
|
||||||
|
TicketBlackListRole: "Blacklisted"
|
||||||
|
|
||||||
# Ticket Configuration
|
# Ticket Configuration
|
||||||
|
|
||||||
@@ -78,6 +79,7 @@ TicketMessage: "Hello <@%ticketauthor%>, Thank you for creating a support ticket
|
|||||||
NoTicketSubject: "No Reason Provided!"
|
NoTicketSubject: "No Reason Provided!"
|
||||||
TicketCreatedAlert: ":ticket: Your support ticket has been created: <#%ticketid%>"
|
TicketCreatedAlert: ":ticket: Your support ticket has been created: <#%ticketid%>"
|
||||||
TranscriptTitle: "Ticket Transcript"
|
TranscriptTitle: "Ticket Transcript"
|
||||||
|
TicketBlackListMessage: "You are not allowed to open a ticket"
|
||||||
|
|
||||||
AddedUser: "👍 <@%user%> has been added to this ticket"
|
AddedUser: "👍 <@%user%> has been added to this ticket"
|
||||||
RemovedUser: "👍 <@%user%> has been removed from this ticket"
|
RemovedUser: "👍 <@%user%> has been removed from this ticket"
|
||||||
|
|||||||
Reference in new issue
Block a user