SB-6.1-PRE
This commit is contained in:
1 parent
7d1d9b881d
commit
28ec96e5e8
8 files changed
+34
-11
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
// SupportBot 6.0, Created by Emerald Services
|
// SupportBot, Created by Emerald Services
|
||||||
// Help Command
|
// Help Command
|
||||||
|
|
||||||
const Discord = require("discord.js");
|
const Discord = require("discord.js");
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# SupportBot 6.0
|
# SupportBot, Created by Emerald Services
|
||||||
# Example Addon
|
# Example Addon
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|||||||
+18
-4
@@ -87,7 +87,11 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ticket Created, Message Sent
|
// Ticket Created, Message Sent
|
||||||
SupportTicket.send(`<@${message.author.id}>`)
|
|
||||||
|
if (supportbot.AllowTicketMentions === "true") {
|
||||||
|
SupportTicket.send(`<@${message.author.id}>`)
|
||||||
|
}
|
||||||
|
|
||||||
const TicketMessage = new Discord.MessageEmbed()
|
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))
|
.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))
|
.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.`)
|
.setTitle(`> Thank for reaching out to the **${supportbot.DepartmentTitle_1} Department**. Please provide us information regarding your query.`)
|
||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
SupportTicket.send({ embed: Department1 });
|
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.`)
|
.setTitle(`> Thank for reaching out to the **${supportbot.DepartmentTitle_2} Department**. Please provide us information regarding your query.`)
|
||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
SupportTicket.send({ embed: Department2 });
|
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.`)
|
.setTitle(`> Thank for reaching out to the **${supportbot.DepartmentTitle_3} Department**. Please provide us information regarding your query.`)
|
||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
SupportTicket.send({ embed: Department3 });
|
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;
|
return [Emoji_1, Emoji_2, Emoji_3].includes(reaction.emoji.name) && user.id !== message.author.id;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
// SupportBot version 6.1
|
// SupportBot version 6.1
|
||||||
// Created by Emerald Services
|
// Created by Emerald Services
|
||||||
// Installed with MIT License
|
// Installed with MIT License
|
||||||
|
//
|
||||||
|
// Support Server: discord.gg/jspKFcE
|
||||||
|
|
||||||
const Discord = require("discord.js");
|
const Discord = require("discord.js");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "supportbot",
|
"name": "supportbot",
|
||||||
"version": "6.0.0",
|
"version": "6.1",
|
||||||
"description": "SupportBot | #1 Self-Hosted Ticket Bot",
|
"description": "SupportBot | #1 Self-Hosted Ticket Bot",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -23,5 +23,5 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/1tzemerald/SupportBot/issues"
|
"url": "https://github.com/1tzemerald/SupportBot/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://emeraldservices.xyz"
|
"homepage": "https://emeraldsrv.dev"
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"ticket": "ticket-0010",
|
"ticket": "ticket-0012",
|
||||||
"id":419821884431925260
|
"id":419821884431925260
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,6 @@
|
|||||||
"id": 65
|
"id": 65
|
||||||
},
|
},
|
||||||
"805909541979029524": {
|
"805909541979029524": {
|
||||||
"id": 11
|
"id": 13
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,10 +8,12 @@
|
|||||||
# SupportBot version 6.1
|
# SupportBot version 6.1
|
||||||
# Created by Emerald Services
|
# Created by Emerald Services
|
||||||
# Installed with MIT License
|
# Installed with MIT License
|
||||||
|
#
|
||||||
|
# Support Server: discord.gg/jspKFcE
|
||||||
|
|
||||||
# General Bot Configuration
|
# General Bot Configuration
|
||||||
|
|
||||||
Token: "BOT_TOKEN"
|
Token: "BOT_TOKEN_HERE"
|
||||||
Prefix: "-"
|
Prefix: "-"
|
||||||
Bot_Name: "SupportBot"
|
Bot_Name: "SupportBot"
|
||||||
|
|
||||||
@@ -52,6 +54,11 @@ TranscriptLog: "transcripts"
|
|||||||
TicketSubject: "description"
|
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.
|
# 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)
|
# Ticket Panel (Ticket Reaction Create)
|
||||||
|
|
||||||
ReactionTickets: "true"
|
ReactionTickets: "true"
|
||||||
|
|||||||
Reference in new issue
Block a user