Compare commits

...
28 Commits
Author SHA1 Message Date
ItzEmerald 951cedb190 Update LICENSE 2020-09-27 01:18:01 +01:00
ItzEmerald 11442f320d Update index.js 2020-09-27 01:14:37 +01:00
ItzEmerald 33df21f656 Update supportbot-config.yml 2020-09-27 01:13:56 +01:00
ItzEmerald 19ab208678 Merge pull request #40 from real2two/patch-1
Add "Delete Messages" options on the configuration file.
2020-09-27 01:06:29 +01:00
ItzEmerald 59b9651575 Merge pull request #42 from real2two/patch-3
Fix prefix on playing status.
2020-09-27 01:06:06 +01:00
ItzEmerald c1c1f1767a Merge pull request #44 from 1tzemerald/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-27 01:05:42 +01:00
dependabot[bot] dda8a5180c Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-27 00:04:16 +00:00
ItzEmerald 34d558412f Update package.json 2020-09-27 01:02:51 +01:00
ItzEmerald be77ee1903 Update newticket.js 2020-09-27 01:00:54 +01:00
ItzEmerald fc571d6c73 Update README.md 2020-09-09 14:04:46 +01:00
Two 7ca5a97535 Update supportbot-config.yml 2020-08-02 10:25:12 -04:00
ItzEmerald 730239ba8d Merge branch 'master' of https://github.com/1tzemerald/SupportBot 2020-08-02 13:53:17 +01:00
ItzEmerald 9069e23188 GuildMemberRemove Fix 2020-08-02 13:53:14 +01:00
Two 366203fe21 Update addon-example.js 2020-07-27 10:45:25 -04:00
Two f23f15c972 Update announce.js 2020-07-27 10:44:06 -04:00
Two 8432290a70 Update botSay.js 2020-07-27 10:43:59 -04:00
Two ceddd503f8 Update close.js 2020-07-27 10:43:51 -04:00
Two 51ad35f72b Update help.js 2020-07-27 10:43:45 -04:00
Two 5631b24a14 Update links.js 2020-07-27 10:43:36 -04:00
Two f9da25643d Update newticket.js 2020-07-27 10:43:30 -04:00
Two 75bed3f5dd Update ping.js 2020-07-27 10:43:25 -04:00
Two d4576dfc21 Update removeUser.js 2020-07-27 10:43:17 -04:00
Two 31bad3c2e5 Update suggest.js 2020-07-27 10:43:11 -04:00
Two a3c0e81e04 Update addUser.js 2020-07-27 10:42:53 -04:00
Two b5cf721efb Update supportbot-config.yml 2020-07-27 10:42:39 -04:00
Two 95063398aa Update message.js 2020-07-27 10:39:25 -04:00
ItzEmerald 2da25c5566 Update README.md 2020-07-26 12:57:08 +01:00
ItzEmerald a72c1ab380 Merge pull request #39 from 1tzemerald/SupportBot-6.0
Support bot 6.0
2020-07-23 20:20:32 +01:00
20 changed files with 65 additions and 52 deletions

No files matched your search

Vendored
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2020 ItzEmerald
Copyright (c) 2020 Emerald SRV
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+13 -22
View File
@@ -1,24 +1,15 @@
```
_________ __ __________ __
/ _____/__ ________ ______ ____________/ |\______ \ _____/ |_
\_____ \| | \____ \\____ \ / _ \_ __ \ __\ | _// _ \ __\
/ \ | / |_> > |_> > <_> ) | \/| | | | ( <_> ) |
/_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
\/ |__| |__| \/
SupportBot version 6.0
Created by Emerald Services
The #1 self-hosted discord ticket bot
```
![SupportBot](https://i.imgur.com/OFO3XB2.png)
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".
|---------|---------|
| Version | |
|---------|---------|
| 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 |
+2 -1
View File
@@ -14,6 +14,7 @@ module.exports = {
description: example.ExampleAddonDesc,
execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete();
message.channel.send(example.ExampleAddonMessage)
}
};
};
+3 -2
View File
@@ -11,7 +11,8 @@ module.exports = {
name: supportbot.AddUser,
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}!`);
let SupportStaff = message.guild.roles.cache.find(SupportTeam => SupportTeam.name === supportbot.Staff)
@@ -61,4 +62,4 @@ module.exports = {
}
}
};
};
+4 -2
View File
@@ -13,7 +13,9 @@ module.exports = {
description: supportbot.AnnounceDesc,
execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete();
let locateChannel = message.guild.channels.cache.find(AnnouncementChannel => AnnouncementChannel.name === supportbot.AnnouncementChannel);
const errornochannel = new Discord.MessageEmbed()
@@ -65,4 +67,4 @@ module.exports = {
}
};
};
+3 -2
View File
@@ -13,7 +13,8 @@ module.exports = {
description: supportbot.BotSayDesc,
execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete();
let SupportStaff = message.guild.roles.cache.find(adminRole => adminRole.name === supportbot.Staff);
const NoPerms = new Discord.MessageEmbed()
@@ -47,4 +48,4 @@ module.exports = {
}
};
};
+3 -1
View File
@@ -13,6 +13,8 @@ module.exports = {
description: supportbot.CloseTicketDesc,
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}!`);
if (!message.channel.name.startsWith( `${supportbot.TicketChannel}-` )) {
@@ -144,4 +146,4 @@ module.exports = {
}
}
};
};
+2
View File
@@ -12,6 +12,8 @@ module.exports = {
description: supportbot.HelpDesc,
execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete();
let generalCommands = "";
generalCommands += `**${supportbot.Prefix}${supportbot.HelpCommand}** ${supportbot.HelpDesc}\n`;
generalCommands += `**${supportbot.Prefix}${supportbot.LinksCommand}** ${supportbot.LinkDesc}\n`;
+2 -1
View File
@@ -13,6 +13,7 @@ module.exports = {
description: supportbot.LinksDesc,
execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete();
const LinksEmbed = new Discord.MessageEmbed()
.setColor(supportbot.EmbedColour)
@@ -30,4 +31,4 @@ module.exports = {
message.channel.send({ embed: LinksEmbed });
}
};
};
+6 -2
View File
@@ -14,6 +14,8 @@ module.exports = {
description: supportbot.NewTicketDesc,
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}!`);
// Ticket ID
@@ -42,11 +44,13 @@ module.exports = {
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 DeptRole3 = message.guild.roles.cache.find(DepartmentRole => DepartmentRole.name === `${supportbot.DepartmentRole_3}`)
SupportTicket.updateOverwrite(AllUsers, {
VIEW_CHANNEL: false,
READ_MESSAGES: false,
SEND_MESSAGES: false,
})
SupportTicket.updateOverwrite(message.author, {
VIEW_CHANNEL: true,
READ_MESSAGES: true,
+3 -1
View File
@@ -12,6 +12,8 @@ module.exports = {
description: supportbot.PingDesc,
execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete();
let ping = Date.now() - message.createdTimestamp + " ms";
const PingCommandEmbed = new Discord.MessageEmbed()
@@ -20,4 +22,4 @@ module.exports = {
message.channel.send({ embed: PingCommandEmbed });
}
};
};
+3 -1
View File
@@ -12,6 +12,8 @@ module.exports = {
description: supportbot.RemoveUserDesc,
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}!`);
let SupportStaff = message.guild.roles.cache.find(SupportTeam => SupportTeam.name === supportbot.Staff)
@@ -59,4 +61,4 @@ module.exports = {
}
}
};
};
+3 -1
View File
@@ -12,6 +12,8 @@ module.exports = {
description: supportbot.SuggestionDesc,
execute(message, args) {
if (supportbot.DeleteMessages == "true") message.delete();
let locateChannel = message.guild.channels.cache.find(SuggestionChannel => SuggestionChannel.name === supportbot.SuggestionChannel);
const errornochannel = new Discord.MessageEmbed()
@@ -55,4 +57,4 @@ module.exports = {
});
}
};
};
+3 -3
View File
@@ -23,16 +23,16 @@ module.exports = async (bot, member) => {
.setColor(supportbot.EmbedColour)
if (supportbot.SystemMessage_Icon === "BOT") {
GuildAddMember.setThumbnail(bot.user.displayAvatarURL())
GuildRemoveMember.setThumbnail(bot.user.displayAvatarURL())
}
if (supportbot.SystemMessage_Icon === "USER") {
GuildAddMember.setThumbnail(member.user.displayAvatarURL())
GuildRemoveMember.setThumbnail(member.user.displayAvatarURL())
}
if (supportbot.SystemMessage_EmbedFooter === "true") {
GuildAddMember.setFooter(supportbot.EmbedFooter)
GuildRemoveMember.setFooter(supportbot.EmbedFooter)
}
SystemChannel.send({ embed: GuildRemoveMember });
+1 -3
View File
@@ -19,6 +19,4 @@ module.exports = async (bot, message) => {
const cmd = bot.commands.get(command);
if(!cmd) return;
cmd.execute(message, args);
message.delete();
};
};
+1 -1
View File
@@ -5,7 +5,7 @@
// /_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
// \/ |__| |__| \/
//
// SupportBot version 6.0
// SupportBot version 6.0.2
// Created by Emerald Services
// Installed with MIT License
+3 -3
View File
@@ -101,9 +101,9 @@
}
},
"node-fetch": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz",
"integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA=="
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
},
"prism-media": {
"version": "1.2.2",
+4 -2
View File
@@ -7,7 +7,9 @@
"discord.js": "^12.2.0",
"js-yaml": "^3.14.0"
},
"devDependencies": {},
"devDependencies": {
"node-fetch": ">=2.6.1"
},
"scripts": {
"test": "help"
},
@@ -20,5 +22,5 @@
"bugs": {
"url": "https://github.com/1tzemerald/SupportBot/issues"
},
"homepage": "https://github.com/1tzemerald/SupportBot#readme"
"homepage": "https://emeraldservices.xyz"
}
+5 -3
View File
@@ -5,7 +5,7 @@
# /_______ /____/| __/| __/ \____/|__| |__| |______ /\____/|__|
# \/ |__| |__| \/
#
# SupportBot version 6.0
# SupportBot version 6.0.2
# Created by Emerald Services
# Installed with MIT License
@@ -15,10 +15,12 @@ Token: "BOT_TOKEN_HERE"
Prefix: "-"
Bot_Name: "SupportBot"
BotActivity: "!help ~ SupportBot 6.0"
BotActivity: "-help ~ SupportBot 6.0"
ActivityType: "PLAYING"
# Activity status can either be PLAYING, WATCHING or LISTENING.
DeleteMessages: "true"
# Embed Configuration
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!"
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."
TicketExists: ":warning: This ticket cannot be opened, It already exists!"
TicketExists: ":warning: This ticket cannot be opened, It already exists!"