SB-6.1-PRE

This commit is contained in:
ItzEmerald committed 2021-02-02 17:01:58 +00:00
1 parent b1fdbee5f8
commit c116e6cbb0
11 files changed
+25 -5

No files matched your search

+3
View File
@@ -18,6 +18,8 @@ module.exports = {
let locateChannel = message.guild.channels.cache.find(AnnouncementChannel => AnnouncementChannel.name === supportbot.AnnouncementChannel); let locateChannel = message.guild.channels.cache.find(AnnouncementChannel => AnnouncementChannel.name === supportbot.AnnouncementChannel);
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.AnnounceCommand}!`);
const errornochannel = new Discord.MessageEmbed() const errornochannel = new Discord.MessageEmbed()
.setTitle("Invalid Channel") .setTitle("Invalid Channel")
.setDescription(`${supportbot.InvalidChannel}\n\nChannel Required: \`${supportbot.AnnouncementChannel}`) .setDescription(`${supportbot.InvalidChannel}\n\nChannel Required: \`${supportbot.AnnouncementChannel}`)
@@ -49,6 +51,7 @@ module.exports = {
}).then((collected) => { }).then((collected) => {
announcement.push(collected.map(r => r.content)); announcement.push(collected.map(r => r.content));
locateChannel.send('@everyone')
const AnnouncementEmbed = new Discord.MessageEmbed() const AnnouncementEmbed = new Discord.MessageEmbed()
.setTitle(supportbot.AnnouncementTitle) .setTitle(supportbot.AnnouncementTitle)
.setThumbnail(supportbot.AnnouncementIcon) .setThumbnail(supportbot.AnnouncementIcon)
+2
View File
@@ -17,6 +17,8 @@ module.exports = {
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Staff); let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Staff);
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.BotSay}!`);
const NoPerms = new Discord.MessageEmbed() const NoPerms = new Discord.MessageEmbed()
.setTitle("Invalid Permissions!") .setTitle("Invalid Permissions!")
.setDescription(`${supportbot.IncorrectPerms}\n\nRole Required: \`${SupportStaff.name}\``) .setDescription(`${supportbot.IncorrectPerms}\n\nRole Required: \`${SupportStaff.name}\``)
+2
View File
@@ -14,6 +14,8 @@ module.exports = {
execute(message, args) { execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete(); if (supportbot.DeleteMessages == "true") message.delete();
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.HelpCommand}!`);
let generalCommands = ""; let generalCommands = "";
generalCommands += `**${supportbot.Prefix}${supportbot.HelpCommand}** ${supportbot.HelpDesc}\n`; generalCommands += `**${supportbot.Prefix}${supportbot.HelpCommand}** ${supportbot.HelpDesc}\n`;
generalCommands += `**${supportbot.Prefix}${supportbot.LinksCommand}** ${supportbot.LinkDesc}\n`; generalCommands += `**${supportbot.Prefix}${supportbot.LinksCommand}** ${supportbot.LinkDesc}\n`;
+2
View File
@@ -15,6 +15,8 @@ module.exports = {
execute(message, args) { execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete(); if (supportbot.DeleteMessages == "true") message.delete();
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.LinksCommand}!`);
const LinksEmbed = new Discord.MessageEmbed() const LinksEmbed = new Discord.MessageEmbed()
.setColor(supportbot.EmbedColour) .setColor(supportbot.EmbedColour)
+5 -1
View File
@@ -87,6 +87,7 @@ module.exports = {
} }
// Ticket Created, Message Sent // Ticket Created, Message Sent
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))
@@ -145,6 +146,7 @@ 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`)
} }
@@ -162,9 +164,10 @@ module.exports = {
} }
const Department2 = new Discord.MessageEmbed() const Department2 = new Discord.MessageEmbed()
.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`)
} }
@@ -186,6 +189,7 @@ 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`)
} }
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;
} }
+2
View File
@@ -14,6 +14,8 @@ module.exports = {
execute(message, args) { execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete(); if (supportbot.DeleteMessages == "true") message.delete();
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.PingCommand}!`)
let ping = Date.now() - message.createdTimestamp + " ms"; let ping = Date.now() - message.createdTimestamp + " ms";
const PingCommandEmbed = new Discord.MessageEmbed() const PingCommandEmbed = new Discord.MessageEmbed()
+2
View File
@@ -16,6 +16,8 @@ module.exports = {
let locateChannel = message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.name === supportbot.SuggestionChannel); let locateChannel = message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.name === supportbot.SuggestionChannel);
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.SuggestCommand}!`);
const errornochannel = new Discord.MessageEmbed() const errornochannel = new Discord.MessageEmbed()
.setTitle("Invalid Channel") .setTitle("Invalid Channel")
.setDescription(`${supportbot.InvalidChannel}\n\nChannel Required: \`${supportbot.SuggestionChannel}\``) .setDescription(`${supportbot.InvalidChannel}\n\nChannel Required: \`${supportbot.SuggestionChannel}\``)
+2 -1
View File
@@ -11,7 +11,8 @@ const tickets = yaml.load(fs.readFileSync('./storage/ticketreaction.yml', 'utf8'
module.exports = async (bot) => { module.exports = async (bot) => {
bot.user.setActivity(supportbot.BotActivity, { bot.user.setActivity(supportbot.BotActivity, {
type: supportbot.ActvityType type: supportbot.ActivityType,
url: supportbot.StreamingURL
}); });
+1 -1
View File
@@ -1,4 +1,4 @@
{ {
"ticket": "ticket-0005", "ticket": "ticket-0010",
"id":419821884431925260 "id":419821884431925260
} }
+1 -1
View File
@@ -3,6 +3,6 @@
"id": 65 "id": 65
}, },
"805909541979029524": { "805909541979029524": {
"id": 6 "id": 11
} }
} }
+3 -1
View File
@@ -16,9 +16,11 @@ Prefix: "-"
Bot_Name: "SupportBot" Bot_Name: "SupportBot"
BotActivity: "-help | SupportBot" BotActivity: "-help | SupportBot"
StreamingURL: "https://www.twitch.tv/YOUR_TWITCH_NAME"
# Must set ActivityType to STREAMING in order for Streaming URL to work in the bots status.
ActivityType: "PLAYING" ActivityType: "PLAYING"
# Activity status can either be PLAYING, WATCHING or LISTENING. # Activity status can either be PLAYING, WATCHING, LISTENING or STREAMING.
DeleteMessages: "true" DeleteMessages: "true"