SB-6.1-PRE

This commit is contained in:
ItzEmerald committed 2021-02-02 17:15:24 +00:00
1 parent 7d1d9b881d
commit 28ec96e5e8
8 files changed
+34 -11

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
// SupportBot 6.0, Created by Emerald Services
// SupportBot, Created by Emerald Services
// Help Command
const Discord = require("discord.js");
+1 -1
View File
@@ -1,5 +1,5 @@
#
# SupportBot 6.0
# SupportBot, Created by Emerald Services
# Example Addon
#
+18 -4
View File
@@ -87,7 +87,11 @@ module.exports = {
}
// Ticket Created, Message Sent
SupportTicket.send(`<@${message.author.id}>`)
if (supportbot.AllowTicketMentions === "true") {
SupportTicket.send(`<@${message.author.id}>`)
}
const TicketMessage = new Discord.MessageEmbed()
.setTitle(supportbot.Ticket_Title.replace(/%ticketauthor%/g, message.author.id).replace(/%ticketid%/g, SupportTicket.id).replace(/%ticketusername%/g, message.author.username))
.setDescription(supportbot.TicketMessage.replace(/%ticketauthor%/g, message.author.id).replace(/%ticketid%/g, SupportTicket.id).replace(/%ticketusername%/g, message.author.username))
@@ -146,7 +150,10 @@ module.exports = {
.setTitle(`> Thank for reaching out to the **${supportbot.DepartmentTitle_1} Department**. Please provide us information regarding your query.`)
.setColor(supportbot.EmbedColour)
SupportTicket.send({ embed: Department1 });
SupportTicket.send(`@here`)
if (supportbot.AllowTicketMentions === "true") {
SupportTicket.send(`@here`)
}
}
@@ -167,7 +174,10 @@ module.exports = {
.setTitle(`> Thank for reaching out to the **${supportbot.DepartmentTitle_2} Department**. Please provide us information regarding your query.`)
.setColor(supportbot.EmbedColour)
SupportTicket.send({ embed: Department2 });
SupportTicket.send(`@here`)
if (supportbot.AllowTicketMentions === "true") {
SupportTicket.send(`@here`)
}
}
@@ -189,7 +199,11 @@ module.exports = {
.setTitle(`> Thank for reaching out to the **${supportbot.DepartmentTitle_3} Department**. Please provide us information regarding your query.`)
.setColor(supportbot.EmbedColour)
SupportTicket.send({ embed: Department3 });
SupportTicket.send(`@here`)
if (supportbot.AllowTicketMentions === "true") {
SupportTicket.send(`@here`)
}
}
return [Emoji_1, Emoji_2, Emoji_3].includes(reaction.emoji.name) && user.id !== message.author.id;
}
+2
View File
@@ -8,6 +8,8 @@
// SupportBot version 6.1
// Created by Emerald Services
// Installed with MIT License
//
// Support Server: discord.gg/jspKFcE
const Discord = require("discord.js");
const fs = require("fs");
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "supportbot",
"version": "6.0.0",
"version": "6.1",
"description": "SupportBot | #1 Self-Hosted Ticket Bot",
"main": "index.js",
"dependencies": {
@@ -23,5 +23,5 @@
"bugs": {
"url": "https://github.com/1tzemerald/SupportBot/issues"
},
"homepage": "https://emeraldservices.xyz"
"homepage": "https://emeraldsrv.dev"
}
+1 -1
View File
@@ -1,4 +1,4 @@
{
"ticket": "ticket-0010",
"ticket": "ticket-0012",
"id":419821884431925260
}
+1 -1
View File
@@ -3,6 +3,6 @@
"id": 65
},
"805909541979029524": {
"id": 11
"id": 13
}
}
+8 -1
View File
@@ -8,10 +8,12 @@
# SupportBot version 6.1
# Created by Emerald Services
# Installed with MIT License
#
# Support Server: discord.gg/jspKFcE
# General Bot Configuration
Token: "BOT_TOKEN"
Token: "BOT_TOKEN_HERE"
Prefix: "-"
Bot_Name: "SupportBot"
@@ -52,6 +54,11 @@ TranscriptLog: "transcripts"
TicketSubject: "description"
# TicketSubject: "description" means that the subject (reason) of the ticket will be displayed upon the channel description if set to "embed" it will be displayed within the embed.
AllowTicketMentions: "true"
# Set to "true" to allow the ticket to mention the author and the support team.
# Set to "false" to dis-allow mentions within tickets.
# Ticket Panel (Ticket Reaction Create)
ReactionTickets: "true"