Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0bd990a9e3 | ||
|
|
9c8ee1471b | ||
|
|
87262e82a3 | ||
|
|
953db88ed2 | ||
|
|
a44bb949eb | ||
|
|
9d11369059 | ||
|
|
8c92f39349 | ||
|
|
bce9d733d3 | ||
|
|
525c216401 | ||
|
|
c145e9f11d | ||
|
|
53700003f1 | ||
|
|
03094a4c35 | ||
|
|
934ebed24f |
No files matched your search
@@ -1,3 +1,5 @@
|
|||||||
<h1 align="center">SupportBot</h1>
|
<h1 align="center">SupportBot</h1>
|
||||||
<p align="center">Created by Emerald Services</p>
|
<p align="center">Created by Emerald SRV</p>
|
||||||
<h4 align="center">Our documentation is currently being rewritten, This will be updated once we push the next update (5.1). If you require our assitance please contact us in discord. https://discord.gg/bXjdkr8</h4>
|
<p align="center"> SupportBot is a free self-hosted discord that is developed/designed to help control and manage the support that takes place throughout your discord server(s). SupportBot has been going around since late-2018 and it's still being constantly, updated and supported today. Alongside the core features of SupportBot which is support related features such as tickets etc.. we also allow additional addons which are made by both 3rd-party and official developers. If something goes wrong with SupportBot you can simply come to our discord server and contact us. We will be happy to help. Also! if anyone ever tells you that "nothing is free" then tell them to think again. Sometimes you just have to look a little harder to find what you want.</p>
|
||||||
|
Version 5.2
|
||||||
|
<hr>
|
||||||
+5
-3
@@ -41,7 +41,7 @@ exports.run = (bot, message, args) => {
|
|||||||
errors: [ 'time' ],
|
errors: [ 'time' ],
|
||||||
|
|
||||||
} ).then( collected => {
|
} ).then( collected => {
|
||||||
let logChannel = message.guild.channels.find( channel => channel.name === supportbot.Transcript_Logs );
|
let logChannel = message.guild.channels.find(channel => channel.name === supportbot.Transcript_Log);
|
||||||
|
|
||||||
let user = message.author;
|
let user = message.author;
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ exports.run = (bot, message, args) => {
|
|||||||
let ticketChannel = message.channel;
|
let ticketChannel = message.channel;
|
||||||
|
|
||||||
message.channel.send(`**${supportbot.Ticket_Closing}**`)
|
message.channel.send(`**${supportbot.Ticket_Closing}**`)
|
||||||
.then( () => {
|
.then(() => {
|
||||||
const logEmbed = new Discord.RichEmbed()
|
const logEmbed = new Discord.RichEmbed()
|
||||||
.setTitle(supportbot.Transcript_Title)
|
.setTitle(supportbot.Transcript_Title)
|
||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
@@ -81,7 +81,9 @@ exports.run = (bot, message, args) => {
|
|||||||
// message.author.send( `A transcript has been generated for the ticket you closed.` );
|
// message.author.send( `A transcript has been generated for the ticket you closed.` );
|
||||||
// message.author.send( new Discord.Attachment( Buffer.from( txt ), `${name}.txt` ) );
|
// message.author.send( new Discord.Attachment( Buffer.from( txt ), `${name}.txt` ) );
|
||||||
|
|
||||||
logChannel.send(logEmbed)
|
logChannel.send(logEmbed).catch(err => {
|
||||||
|
message.reply(err)
|
||||||
|
})
|
||||||
logChannel.send( new Discord.Attachment( Buffer.from( txt ), `${name}.txt` ) );
|
logChannel.send( new Discord.Attachment( Buffer.from( txt ), `${name}.txt` ) );
|
||||||
|
|
||||||
message.channel.delete();
|
message.channel.delete();
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ exports.run = async (bot, message, args) => {
|
|||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
if (!message.channel.name.startsWith(`${supportbot.Ticket_Channel_Name}-`)) return message.channel.send({embed: outsideticket});
|
if (!message.channel.name.startsWith(`${supportbot.Ticket_Channel_Name}-`)) return message.channel.send({embed: outsideticket});
|
||||||
|
|
||||||
const log = message.guild.channels.find(channel => channel.name === supportbot.Transcript_Logs)
|
const log = message.guild.channels.find(channel => channel.name === supportbot.Transcript_Log)
|
||||||
const uID = message.author
|
const uID = message.author
|
||||||
const reason = args.join(" ") || "No Reason Provided.";
|
const reason = args.join(" ") || "No Reason Provided.";
|
||||||
const name = message.channel.name;
|
const name = message.channel.name;
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ exports.run = async(bot, message, args) => {
|
|||||||
const SuggestionEmbed = new Discord.RichEmbed()
|
const SuggestionEmbed = new Discord.RichEmbed()
|
||||||
.setTitle(`${supportbot.Suggestion_Title}`)
|
.setTitle(`${supportbot.Suggestion_Title}`)
|
||||||
.setDescription(`\`\`\`${args.join(" ")}\`\`\`\nFrom <@${message.author.id}>`)
|
.setDescription(`\`\`\`${args.join(" ")}\`\`\`\nFrom <@${message.author.id}>`)
|
||||||
.setFooter(`${supportbot.footer}`, message.author.avatarURL)
|
.setFooter(`${supportbot.EmbedFooter}`, message.author.avatarURL)
|
||||||
.setTimestamp(new Date())
|
.setTimestamp(new Date())
|
||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ exports.run = async (bot, message, args) => {
|
|||||||
TicketChannel.overwritePermissions(department2, { SEND_MESSAGES: false, READ_MESSAGES: false })
|
TicketChannel.overwritePermissions(department2, { SEND_MESSAGES: false, READ_MESSAGES: false })
|
||||||
TicketChannel.overwritePermissions(department3, { SEND_MESSAGES: false, READ_MESSAGES: false })
|
TicketChannel.overwritePermissions(department3, { SEND_MESSAGES: false, READ_MESSAGES: false })
|
||||||
TicketChannel.overwritePermissions(staff, { SEND_MESSAGES: true, READ_MESSAGES: true })
|
TicketChannel.overwritePermissions(staff, { SEND_MESSAGES: true, READ_MESSAGES: true })
|
||||||
TicketChannel.overwritePermissions(message.author, { SEND_MESSAGES: true, READ_MESSAGES: true })
|
TicketChannel.overwritePermissions(message.author, { SEND_MESSAGES: false, READ_MESSAGES: true })
|
||||||
TicketChannel.overwritePermissions(bot.user, { SEND_MESSAGES: true, READ_MESSAGES: true })
|
TicketChannel.overwritePermissions(bot.user, { SEND_MESSAGES: true, READ_MESSAGES: true })
|
||||||
|
|
||||||
// Category
|
// Category
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// |_| |_|
|
// |_| |_|
|
||||||
// © 2020 Created by Emerald Services
|
// © 2020 Created by Emerald Services
|
||||||
// Licnese: MIT
|
// Licnese: MIT
|
||||||
// SupportBot v5.1.0
|
// SupportBot v5.1.1
|
||||||
|
|
||||||
const Discord = require("discord.js");
|
const Discord = require("discord.js");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
@@ -51,7 +51,7 @@ bot.on("ready", async () => {
|
|||||||
bot.user.setActivity(supportbot.BotActivity, {type: supportbot.ActvityType});
|
bot.user.setActivity(supportbot.BotActivity, {type: supportbot.ActvityType});
|
||||||
console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`)
|
console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`)
|
||||||
console.log(`\u001b[37m`, `Emerald Services has successfully connected to discord`)
|
console.log(`\u001b[37m`, `Emerald Services has successfully connected to discord`)
|
||||||
console.log(`\u001b[37m`, `Invite your bot with https://discordapp.com/api/oauth2/authorize?client_id=516372960110444574&permissions=8&scope=bot`)
|
console.log(`\u001b[37m`, `Invite your bot with https://discordapp.com/api/oauth2/authorize?client_id=${bot.user.id}&permissions=8&scope=bot`)
|
||||||
console.log(`\u001b[37m`, `© ️SupportBot created by Emerald Services`)
|
console.log(`\u001b[37m`, `© ️SupportBot created by Emerald Services`)
|
||||||
console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`)
|
console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`)
|
||||||
|
|
||||||
|
|||||||
Generated
-80
@@ -1,80 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "SupportBot",
|
|
||||||
"version": "4.0",
|
|
||||||
"lockfileVersion": 1,
|
|
||||||
"requires": true,
|
|
||||||
"dependencies": {
|
|
||||||
"argparse": {
|
|
||||||
"version": "1.0.10",
|
|
||||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
|
||||||
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
|
||||||
"requires": {
|
|
||||||
"sprintf-js": "~1.0.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"async-limiter": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ=="
|
|
||||||
},
|
|
||||||
"discord.js": {
|
|
||||||
"version": "11.5.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-11.5.1.tgz",
|
|
||||||
"integrity": "sha512-tGhV5xaZXE3Z+4uXJb3hYM6gQ1NmnSxp9PClcsSAYFVRzH6AJH74040mO3afPDMWEAlj8XsoPXXTJHTxesqcGw==",
|
|
||||||
"requires": {
|
|
||||||
"long": "^4.0.0",
|
|
||||||
"prism-media": "^0.0.3",
|
|
||||||
"snekfetch": "^3.6.4",
|
|
||||||
"tweetnacl": "^1.0.0",
|
|
||||||
"ws": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"esprima": {
|
|
||||||
"version": "4.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
|
||||||
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
|
|
||||||
},
|
|
||||||
"js-yaml": {
|
|
||||||
"version": "3.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
|
|
||||||
"integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
|
|
||||||
"requires": {
|
|
||||||
"argparse": "^1.0.7",
|
|
||||||
"esprima": "^4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"long": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA=="
|
|
||||||
},
|
|
||||||
"prism-media": {
|
|
||||||
"version": "0.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/prism-media/-/prism-media-0.0.3.tgz",
|
|
||||||
"integrity": "sha512-c9KkNifSMU/iXT8FFTaBwBMr+rdVcN+H/uNv1o+CuFeTThNZNTOrQ+RgXA1yL/DeLk098duAeRPP3QNPNbhxYQ=="
|
|
||||||
},
|
|
||||||
"snekfetch": {
|
|
||||||
"version": "3.6.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-3.6.4.tgz",
|
|
||||||
"integrity": "sha512-NjxjITIj04Ffqid5lqr7XdgwM7X61c/Dns073Ly170bPQHLm6jkmelye/eglS++1nfTWktpP6Y2bFXjdPlQqdw=="
|
|
||||||
},
|
|
||||||
"sprintf-js": {
|
|
||||||
"version": "1.0.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
|
||||||
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
|
|
||||||
},
|
|
||||||
"tweetnacl": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-+8aPRjmXgf1VqvyxSlBUzKzeYqVS9Ai8vZ28g+mL7dNQl1jlUTCMDZnvNQdAS1xTywMkIXwJsfipsR/6s2+syw=="
|
|
||||||
},
|
|
||||||
"ws": {
|
|
||||||
"version": "6.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz",
|
|
||||||
"integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==",
|
|
||||||
"requires": {
|
|
||||||
"async-limiter": "~1.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+8
-31
@@ -1,38 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "SupportBot",
|
"name": "supportbot",
|
||||||
"version": "4.0",
|
"version": "5.1.0",
|
||||||
"description": "SupportBot",
|
"description": "a discord dbot that can you help with your servers support",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"private": "true",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "-help"
|
||||||
"start": "node index.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": "12.6.0",
|
|
||||||
"npm": "6.9.0"
|
|
||||||
},
|
},
|
||||||
|
"author": "Emerald SRV",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"array-sort": "^1.0.0",
|
|
||||||
"discord.js": "^11.5.1",
|
"discord.js": "^11.5.1",
|
||||||
"js-yaml": "^3.13.1",
|
"js-yaml": "^3.13.1"
|
||||||
"table": "^5.4.4"
|
}
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/EmeraldRusher/SupportBot.git"
|
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"SupportBot",
|
|
||||||
"Emerald Services"
|
|
||||||
],
|
|
||||||
"author": "Emerald Services",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/EmeraldRusher/SupportBot/issues"
|
|
||||||
},
|
|
||||||
"homepage": "https://discord.gg/hmWgxdF",
|
|
||||||
"contributors": [
|
|
||||||
"iJosGCS",
|
|
||||||
"RedstoneGamez"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
# /_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
|
# /_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
|
||||||
# \/ |__| |__| \/
|
# \/ |__| |__| \/
|
||||||
#
|
#
|
||||||
# SupportBot v5.1.0
|
# SupportBot v5.1.1
|
||||||
# Created by © 2020 Emerald Services
|
# Created by © 2020 Emerald Services
|
||||||
# License: MIT
|
# License: MIT
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user