Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
951cedb190 | ||
|
|
11442f320d | ||
|
|
33df21f656 | ||
|
|
19ab208678 | ||
|
|
59b9651575 | ||
|
|
c1c1f1767a | ||
|
|
dda8a5180c | ||
|
|
34d558412f | ||
|
|
be77ee1903 | ||
|
|
fc571d6c73 | ||
|
|
7ca5a97535 | ||
|
|
730239ba8d | ||
|
|
9069e23188 | ||
|
|
366203fe21 | ||
|
|
f23f15c972 | ||
|
|
8432290a70 | ||
|
|
ceddd503f8 | ||
|
|
51ad35f72b | ||
|
|
5631b24a14 | ||
|
|
f9da25643d | ||
|
|
75bed3f5dd | ||
|
|
d4576dfc21 | ||
|
|
31bad3c2e5 | ||
|
|
a3c0e81e04 | ||
|
|
b5cf721efb | ||
|
|
95063398aa | ||
|
|
2da25c5566 | ||
|
|
a72c1ab380 |
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 ItzEmerald
|
Copyright (c) 2020 Emerald SRV
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1,24 +1,15 @@
|
|||||||
```
|

|
||||||
_________ __ __________ __
|
|
||||||
/ _____/__ ________ ______ ____________/ |\______ \ _____/ |_
|
SupportBot the #1 self-hosted discord ticket system with any customizations and features to help make your support system look clean, tidy and professional. It's self-hosted! No need to use someone's public discord bot thats used in a handful of servers. Create, Configure & Use your own discord bot installed with SupportBot.
|
||||||
\_____ \| | \____ \\____ \ / _ \_ __ \ __\ | _// _ \ __\
|
|
||||||
/ \ | / |_> > |_> > <_> ) | \/| | | | ( <_> ) |
|
### SupportBot Compatibility
|
||||||
/_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
|
|
||||||
\/ |__| |__| \/
|
> Anything older than v6 we will no longer be supporting, However our terms & conditions still remain valid for all copies of our product "SupportBot".
|
||||||
|
|
||||||
SupportBot version 6.0
|
|---------|---------|
|
||||||
Created by Emerald Services
|
| Version | |
|
||||||
|
|---------|---------|
|
||||||
The #1 self-hosted discord ticket bot
|
| 6.0. | ✅ |
|
||||||
```
|
|---------|---------|
|
||||||
|
|
||||||
## SUPPORTBOT SUPPORTED VERSIONS
|
|
||||||
|
|
||||||
| SupportBot | Status | Supported |
|
|
||||||
|------------|-----------|--------------|
|
|
||||||
| 1.x | ❌ | Discontinued |
|
|
||||||
| 2.x | ❌ | Discontinued |
|
|
||||||
| 3.x | ❌ | Discontinued |
|
|
||||||
| 4.x | ✔️ | Previous |
|
|
||||||
| 5.x | ✔️ | Current |
|
|
||||||
| 6.x | ⚠️ | Under Development |
|
|
||||||
@@ -14,6 +14,7 @@ module.exports = {
|
|||||||
description: example.ExampleAddonDesc,
|
description: example.ExampleAddonDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
message.channel.send(example.ExampleAddonMessage)
|
message.channel.send(example.ExampleAddonMessage)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
+3
-2
@@ -11,7 +11,8 @@ module.exports = {
|
|||||||
name: supportbot.AddUser,
|
name: supportbot.AddUser,
|
||||||
description: supportbot.AddUserDesc,
|
description: supportbot.AddUserDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.AddUser}!`);
|
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.AddUser}!`);
|
||||||
|
|
||||||
let SupportStaff = message.guild.roles.cache.find(SupportTeam => SupportTeam.name === supportbot.Staff)
|
let SupportStaff = message.guild.roles.cache.find(SupportTeam => SupportTeam.name === supportbot.Staff)
|
||||||
@@ -61,4 +62,4 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -13,7 +13,9 @@ module.exports = {
|
|||||||
description: supportbot.AnnounceDesc,
|
description: supportbot.AnnounceDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
let locateChannel = message.guild.channels.cache.find(AnnouncementChannel => AnnouncementChannel.name === supportbot.AnnouncementChannel);
|
let locateChannel = message.guild.channels.cache.find(AnnouncementChannel => AnnouncementChannel.name === supportbot.AnnouncementChannel);
|
||||||
|
|
||||||
const errornochannel = new Discord.MessageEmbed()
|
const errornochannel = new Discord.MessageEmbed()
|
||||||
@@ -65,4 +67,4 @@ module.exports = {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
+3
-2
@@ -13,7 +13,8 @@ module.exports = {
|
|||||||
description: supportbot.BotSayDesc,
|
description: supportbot.BotSayDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Staff);
|
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Staff);
|
||||||
|
|
||||||
const NoPerms = new Discord.MessageEmbed()
|
const NoPerms = new Discord.MessageEmbed()
|
||||||
@@ -47,4 +48,4 @@ module.exports = {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
+3
-1
@@ -13,6 +13,8 @@ module.exports = {
|
|||||||
description: supportbot.CloseTicketDesc,
|
description: supportbot.CloseTicketDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.CloseTicket}!`);
|
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.CloseTicket}!`);
|
||||||
|
|
||||||
if (!message.channel.name.startsWith( `${supportbot.TicketChannel}-` )) {
|
if (!message.channel.name.startsWith( `${supportbot.TicketChannel}-` )) {
|
||||||
@@ -144,4 +146,4 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -12,6 +12,8 @@ module.exports = {
|
|||||||
description: supportbot.HelpDesc,
|
description: supportbot.HelpDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
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
-1
@@ -13,6 +13,7 @@ module.exports = {
|
|||||||
description: supportbot.LinksDesc,
|
description: supportbot.LinksDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
const LinksEmbed = new Discord.MessageEmbed()
|
const LinksEmbed = new Discord.MessageEmbed()
|
||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
@@ -30,4 +31,4 @@ module.exports = {
|
|||||||
message.channel.send({ embed: LinksEmbed });
|
message.channel.send({ embed: LinksEmbed });
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -14,6 +14,8 @@ module.exports = {
|
|||||||
description: supportbot.NewTicketDesc,
|
description: supportbot.NewTicketDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
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
|
||||||
@@ -42,11 +44,13 @@ module.exports = {
|
|||||||
let DeptRole1 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_1}`)
|
let DeptRole1 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_1}`)
|
||||||
let DeptRole2 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_2}`)
|
let DeptRole2 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_2}`)
|
||||||
let DeptRole3 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_3}`)
|
let DeptRole3 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_3}`)
|
||||||
|
|
||||||
SupportTicket.updateOverwrite(AllUsers, {
|
SupportTicket.updateOverwrite(AllUsers, {
|
||||||
VIEW_CHANNEL: false,
|
VIEW_CHANNEL: false,
|
||||||
|
READ_MESSAGES: false,
|
||||||
|
SEND_MESSAGES: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
SupportTicket.updateOverwrite(message.author, {
|
SupportTicket.updateOverwrite(message.author, {
|
||||||
VIEW_CHANNEL: true,
|
VIEW_CHANNEL: true,
|
||||||
READ_MESSAGES: true,
|
READ_MESSAGES: true,
|
||||||
|
|||||||
+3
-1
@@ -12,6 +12,8 @@ module.exports = {
|
|||||||
description: supportbot.PingDesc,
|
description: supportbot.PingDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
let ping = Date.now() - message.createdTimestamp + " ms";
|
let ping = Date.now() - message.createdTimestamp + " ms";
|
||||||
|
|
||||||
const PingCommandEmbed = new Discord.MessageEmbed()
|
const PingCommandEmbed = new Discord.MessageEmbed()
|
||||||
@@ -20,4 +22,4 @@ module.exports = {
|
|||||||
|
|
||||||
message.channel.send({ embed: PingCommandEmbed });
|
message.channel.send({ embed: PingCommandEmbed });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -12,6 +12,8 @@ module.exports = {
|
|||||||
description: supportbot.RemoveUserDesc,
|
description: supportbot.RemoveUserDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.RemoveUser}!`);
|
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.RemoveUser}!`);
|
||||||
|
|
||||||
let SupportStaff = message.guild.roles.cache.find(SupportTeam => SupportTeam.name === supportbot.Staff)
|
let SupportStaff = message.guild.roles.cache.find(SupportTeam => SupportTeam.name === supportbot.Staff)
|
||||||
@@ -59,4 +61,4 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
+3
-1
@@ -12,6 +12,8 @@ module.exports = {
|
|||||||
description: supportbot.SuggestionDesc,
|
description: supportbot.SuggestionDesc,
|
||||||
|
|
||||||
execute(message, args) {
|
execute(message, args) {
|
||||||
|
if (supportbot.DeleteMessages == "true") message.delete();
|
||||||
|
|
||||||
let locateChannel = message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.name === supportbot.SuggestionChannel);
|
let locateChannel = message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.name === supportbot.SuggestionChannel);
|
||||||
|
|
||||||
const errornochannel = new Discord.MessageEmbed()
|
const errornochannel = new Discord.MessageEmbed()
|
||||||
@@ -55,4 +57,4 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -23,16 +23,16 @@ module.exports = async (bot, member) => {
|
|||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
|
|
||||||
if (supportbot.SystemMessage_Icon === "BOT") {
|
if (supportbot.SystemMessage_Icon === "BOT") {
|
||||||
GuildAddMember.setThumbnail(bot.user.displayAvatarURL())
|
GuildRemoveMember.setThumbnail(bot.user.displayAvatarURL())
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supportbot.SystemMessage_Icon === "USER") {
|
if (supportbot.SystemMessage_Icon === "USER") {
|
||||||
GuildAddMember.setThumbnail(member.user.displayAvatarURL())
|
GuildRemoveMember.setThumbnail(member.user.displayAvatarURL())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (supportbot.SystemMessage_EmbedFooter === "true") {
|
if (supportbot.SystemMessage_EmbedFooter === "true") {
|
||||||
GuildAddMember.setFooter(supportbot.EmbedFooter)
|
GuildRemoveMember.setFooter(supportbot.EmbedFooter)
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemChannel.send({ embed: GuildRemoveMember });
|
SystemChannel.send({ embed: GuildRemoveMember });
|
||||||
|
|||||||
+1
-3
@@ -19,6 +19,4 @@ module.exports = async (bot, message) => {
|
|||||||
const cmd = bot.commands.get(command);
|
const cmd = bot.commands.get(command);
|
||||||
if(!cmd) return;
|
if(!cmd) return;
|
||||||
cmd.execute(message, args);
|
cmd.execute(message, args);
|
||||||
message.delete();
|
};
|
||||||
|
|
||||||
};
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
// /_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
|
// /_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
|
||||||
// \/ |__| |__| \/
|
// \/ |__| |__| \/
|
||||||
//
|
//
|
||||||
// SupportBot version 6.0
|
// SupportBot version 6.0.2
|
||||||
// Created by Emerald Services
|
// Created by Emerald Services
|
||||||
// Installed with MIT License
|
// Installed with MIT License
|
||||||
|
|
||||||
|
|||||||
Generated
+3
-3
@@ -101,9 +101,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node-fetch": {
|
"node-fetch": {
|
||||||
"version": "2.6.0",
|
"version": "2.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
|
||||||
"integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA=="
|
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
|
||||||
},
|
},
|
||||||
"prism-media": {
|
"prism-media": {
|
||||||
"version": "1.2.2",
|
"version": "1.2.2",
|
||||||
|
|||||||
+4
-2
@@ -7,7 +7,9 @@
|
|||||||
"discord.js": "^12.2.0",
|
"discord.js": "^12.2.0",
|
||||||
"js-yaml": "^3.14.0"
|
"js-yaml": "^3.14.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {
|
||||||
|
"node-fetch": ">=2.6.1"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "help"
|
"test": "help"
|
||||||
},
|
},
|
||||||
@@ -20,5 +22,5 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/1tzemerald/SupportBot/issues"
|
"url": "https://github.com/1tzemerald/SupportBot/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/1tzemerald/SupportBot#readme"
|
"homepage": "https://emeraldservices.xyz"
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
# /_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
|
# /_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
|
||||||
# \/ |__| |__| \/
|
# \/ |__| |__| \/
|
||||||
#
|
#
|
||||||
# SupportBot version 6.0
|
# SupportBot version 6.0.2
|
||||||
# Created by Emerald Services
|
# Created by Emerald Services
|
||||||
# Installed with MIT License
|
# Installed with MIT License
|
||||||
|
|
||||||
@@ -15,10 +15,12 @@ Token: "BOT_TOKEN_HERE"
|
|||||||
Prefix: "-"
|
Prefix: "-"
|
||||||
Bot_Name: "SupportBot"
|
Bot_Name: "SupportBot"
|
||||||
|
|
||||||
BotActivity: "!help ~ SupportBot 6.0"
|
BotActivity: "-help ~ SupportBot 6.0"
|
||||||
ActivityType: "PLAYING"
|
ActivityType: "PLAYING"
|
||||||
# Activity status can either be PLAYING, WATCHING or LISTENING.
|
# Activity status can either be PLAYING, WATCHING or LISTENING.
|
||||||
|
|
||||||
|
DeleteMessages: "true"
|
||||||
|
|
||||||
# Embed Configuration
|
# Embed Configuration
|
||||||
|
|
||||||
EmbedColour: "#04b545"
|
EmbedColour: "#04b545"
|
||||||
@@ -183,4 +185,4 @@ IncorrectPerms: ":x: **Err!** You do not have the correct permissions to use thi
|
|||||||
InvalidChannel: ":x: **Err!** Channel not found. Please create it!"
|
InvalidChannel: ":x: **Err!** Channel not found. Please create it!"
|
||||||
UserNotFound: ":x: **Err!** This user doesn't exist, Are they in this server?"
|
UserNotFound: ":x: **Err!** This user doesn't exist, Are they in this server?"
|
||||||
NoValidTicket: ":warning: You cannot execute this command here. This command is used when closing a ticket."
|
NoValidTicket: ":warning: You cannot execute this command here. This command is used when closing a ticket."
|
||||||
TicketExists: ":warning: This ticket cannot be opened, It already exists!"
|
TicketExists: ":warning: This ticket cannot be opened, It already exists!"
|
||||||
Reference in new issue
Block a user