Compare commits
11
Commits
SupportBot
...
3.5.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a819078d7f | ||
|
|
2c9b4c663d | ||
|
|
22e6803e14 | ||
|
|
61cecb112f | ||
|
|
0c18aff34d | ||
|
|
599649a97f | ||
|
|
45194b82da | ||
|
|
570d0985d3 | ||
|
|
5eae625b28 | ||
|
|
fcc5460ff2 | ||
|
|
07d45e50de |
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
<h1 align="center">SupportBot v3.4</h1>
|
<h1 align="center">SupportBot v3.5</h1>
|
||||||
<h4 align="center">A Self Hosted discord application</h4>
|
<h4 align="center">A Self Hosted discord application</h4>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
@@ -6,6 +6,8 @@
|
|||||||
<img src="https://discordapp.com/api/guilds/516345301985132552/widget.png?style=shield" alt="Discord Server">
|
<img src="https://discordapp.com/api/guilds/516345301985132552/widget.png?style=shield" alt="Discord Server">
|
||||||
</a>
|
</a>
|
||||||
<img src="https://img.shields.io/badge/Made%20with-NodeJS-blue.svg" alt="Made with NodeJS">
|
<img src="https://img.shields.io/badge/Made%20with-NodeJS-blue.svg" alt="Made with NodeJS">
|
||||||
|
<img src="https://img.shields.io/github/release/EmeraldRusher/SupportBot.svg" alt="GitHub release">
|
||||||
|
<img src="https://img.shields.io/github/package-json/dependency-version/EmeraldRusher/SupportBot/discord.js.svg" alt="GitHub package.json dependency version (prod)">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
SupportBot is a free & open source discord bot for your server that has the capability to control & manage your servers support.
|
SupportBot is a free & open source discord bot for your server that has the capability to control & manage your servers support.
|
||||||
@@ -28,64 +30,59 @@ Head back to discord developers portal where your application is and head into t
|
|||||||
Once you have setup your discord application such as invited the bot and added your bot token to the ``settings.json`` we can begin configurating your bot. Firstly open up the ``settings.json`` file and you will see loads of different things to config. You will see the following below:
|
Once you have setup your discord application such as invited the bot and added your bot token to the ``settings.json`` we can begin configurating your bot. Firstly open up the ``settings.json`` file and you will see loads of different things to config. You will see the following below:
|
||||||
|
|
||||||
```
|
```
|
||||||
"prefix": "!",
|
{
|
||||||
"botname": "SupportBot",
|
"SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/",
|
||||||
"colour": "#42f477",
|
"token": "TOKEN",
|
||||||
"footer": "Support Bot, By Emerald",
|
"prefix": "!",
|
||||||
|
"botname": "SupportBot",
|
||||||
"BotStatus": "Support Bot",.
|
"colour": "#42f477",
|
||||||
|
"footer": "Support Bot, By Emerald",
|
||||||
"staff": "Staff",
|
"BotStatus": "Support Bot",
|
||||||
"support": "Support Team",
|
"staff": "Staff",
|
||||||
"everyone": "@everyone",
|
"support": "Support",
|
||||||
|
"everyone": "@everyone",
|
||||||
"category": "Tickets",
|
"Auto_Role": "Member",
|
||||||
"Ticket_Message": "Your support ticket has been opened successfully\nPlease allow us some time to reach out to you.",
|
"category": "Tickets",
|
||||||
"Ticket_Logs": "ticket-logs",
|
"Ticket_Message": "Your support ticket has been opened successfully\nPlease allow us some time to reach out to you.",
|
||||||
|
"Ticket_Logs": "ticket-logs",
|
||||||
"Announcement_Title": "SupportBot Announcement",
|
"Announcement_Title": "SupportBot Announcement",
|
||||||
"Announcement_Channel": "announcements",
|
"Announcement_Channel": "announcements",
|
||||||
|
"Welcome_Message": "Welcome to the server!",
|
||||||
"Welcome_Message": "Welcome to the server!",
|
"Welcome_Channel": "welcome",
|
||||||
"Welcome_Channel": "welcome",
|
"Leave_Message": "Thank you for visiting us!",
|
||||||
|
"Leave_Channel": "welcome",
|
||||||
"Leave_Message": "Thank you for visiting us!",
|
"Poll_Channel": "polls",
|
||||||
"Leave_Channel": "welcome",
|
"Poll_Title": "📊 Polls",
|
||||||
|
"Reaction_Poll_1": "✅",
|
||||||
"Poll_Channel": "polls",
|
"Reaction_Poll_2": "❎",
|
||||||
"Poll_Title": "📊 Polls",
|
"Suggestion_Title": "SupportBot Suggestions",
|
||||||
"Reaction_Poll_1": "✅",
|
"Suggestion_Channel": "suggestions",
|
||||||
"Reaction_Poll_2": "❎",
|
"suggestyes": "✅",
|
||||||
|
"suggestno": "❎",
|
||||||
"Suggestion_Title": "SupportBot Suggestions",
|
"Report_Channel": "reports",
|
||||||
"Suggestion_Channel": "suggestions",
|
"Report_Title": "SupportBot Report",
|
||||||
"suggestyes": "✅",
|
"LINKS": {
|
||||||
"suggestno": "❎",
|
"Discord": "https://discord.gg/",
|
||||||
|
"Twitter": "https://twitter.com/",
|
||||||
"LINK_1_NAME": "Discord",
|
"Website": "https://example.com/"
|
||||||
"LINK_2_NAME": "Twitter",
|
},
|
||||||
"LINK_3_NAME": "Website",
|
"LINKS_TITLE": "SupportBot Links",
|
||||||
|
"Ticket_Command": "ticket",
|
||||||
"LINK_1": "https://dicord.gg/changemeinconfig",
|
"Suggest_Command": "suggest",
|
||||||
"LINK_2": "https://twitter.com/changemeinconfig",
|
"Say_Command": "say",
|
||||||
"LINK_3": "https://www.example.com/",
|
"Remove_Command": "remove",
|
||||||
|
"Add_Command": "add",
|
||||||
"LINKS_TITLE": "SupportBot Links",
|
"Ping_Command": "ping",
|
||||||
|
"Close_Command": "close",
|
||||||
"Ticket_Command": "ticket",
|
"Forceclose_Command": "forceclose",
|
||||||
"Suggest_Command": "suggest",
|
"Rename_Command": "rename",
|
||||||
"Say_Command": "say",
|
"Help_Command": "help",
|
||||||
"Remove_Command": "remove",
|
"Link_Command": "links",
|
||||||
"Add_Command": "add",
|
"Lockchat_Command": "lock",
|
||||||
"Ping_Command": "ping",
|
"UnLockchat_Command": "unlock",
|
||||||
"Close_Command": "close",
|
"Poll_Command": "poll",
|
||||||
"Forceclose_Command": "forceclose",
|
"Report_Command": "report"
|
||||||
"Rename_Command": "rename",
|
}
|
||||||
"Help_Command": "help",
|
|
||||||
"Link_Command": "links",
|
|
||||||
"Lockchat_Command": "lock",
|
|
||||||
"UnLockchat_Command": "unlock",
|
|
||||||
"Poll_Command": "poll"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Contributors List
|
# Contributors List
|
||||||
|
|||||||
+18
-14
@@ -1,27 +1,31 @@
|
|||||||
// SupportBot
|
// SupportBot
|
||||||
// Command: Help
|
// Command: Help
|
||||||
|
|
||||||
const Discord = require("discord.js");
|
const Discord = require( "discord.js" );
|
||||||
const bot = new Discord.Client()
|
const bot = new Discord.Client()
|
||||||
|
|
||||||
bot.settings = require("../settings.json");
|
bot.settings = require( "../settings.json" );
|
||||||
|
|
||||||
exports.run = (bot, message, args) => {
|
exports.run = ( bot, message, args ) => {
|
||||||
message.delete();
|
message.delete();
|
||||||
|
|
||||||
let BotLinks = "";
|
let botLinks = bot.settings.LINKS;
|
||||||
BotLinks += `[${bot.settings.LINK_1_NAME}](${bot.settings.LINK_1})\n`;
|
|
||||||
BotLinks += `[${bot.settings.LINK_2_NAME}](${bot.settings.LINK_2})\n`;
|
|
||||||
BotLinks += `[${bot.settings.LINK_3_NAME}](${bot.settings.LINK_3})\n`;
|
|
||||||
|
|
||||||
const links = new Discord.RichEmbed()
|
let links = '';
|
||||||
.setTitle(`${bot.settings.LINKS_TITLE}`)
|
|
||||||
.setDescription(BotLinks)
|
|
||||||
.setColor(bot.settings.colour)
|
|
||||||
.setFooter(bot.settings.footer)
|
|
||||||
message.channel.send(links)
|
|
||||||
|
|
||||||
console.log(`\x1b[36m`, `${message.author} has executed ${bot.settings.prefix}${bot.settings.Link_Command}`)
|
for ( let name in botLinks ) {
|
||||||
|
links += `[${name}](${botLinks[ name ]})\n`;
|
||||||
|
}
|
||||||
|
|
||||||
|
let embed = new Discord.RichEmbed()
|
||||||
|
.setTitle( bot.settings.LINKS_TITLE )
|
||||||
|
.setDescription( links )
|
||||||
|
.setColor( bot.settings.colour )
|
||||||
|
.setFooter( bot.settings.footer )
|
||||||
|
|
||||||
|
message.channel.send( embed );
|
||||||
|
|
||||||
|
console.log( `\x1b[36m`, `${message.author} has executed ${bot.settings.prefix}${bot.settings.Link_Command}` )
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Resource: SupportBot
|
// Resource: SupportBot
|
||||||
// Developed by Emerald
|
// Developed by Emerald
|
||||||
// Version: 3.4
|
// Version: 3.5
|
||||||
|
|
||||||
const Discord = require("discord.js");
|
const Discord = require("discord.js");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
@@ -72,17 +72,20 @@ if(!cmd) return;
|
|||||||
cmd.run(bot, message, args);
|
cmd.run(bot, message, args);
|
||||||
});
|
});
|
||||||
|
|
||||||
// [SupportBot] Welcome Message
|
// [SupportBot] Welcome Message && Auto Join Role
|
||||||
|
|
||||||
bot.on("guildMemberAdd", (member) => {
|
bot.on("guildMemberAdd", (member) => {
|
||||||
let channel = member.guild.channels.find(channel => channel.name === `${bot.settings.Welcome_Channel}`)
|
let channel = member.guild.channels.find(channel => channel.name === `${bot.settings.Welcome_Channel}`)
|
||||||
|
let autorole = member.guild.roles.find(autorole => autorole.name === `${bot.settings.Auto_Role}`)
|
||||||
|
|
||||||
const WelcomeMsg= new Discord.RichEmbed()
|
const WelcomeMsg= new Discord.RichEmbed()
|
||||||
.setColor(bot.settings.colour)
|
.setColor(bot.settings.colour)
|
||||||
.setThumbnail(member.user.avatarURL)
|
.setThumbnail(member.user.avatarURL)
|
||||||
.setDescription(`:wave: ${member.user.username}\n${bot.settings.Welcome_Message}`)
|
.setDescription(`:wave: ${member.user.username}\n${bot.settings.Welcome_Message}`)
|
||||||
|
|
||||||
channel.send(WelcomeMsg);
|
channel.send(WelcomeMsg);
|
||||||
|
member.addRole(autorole).catch(console.error);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// [SupportBot] Leave Message
|
// [SupportBot] Leave Message
|
||||||
@@ -99,4 +102,4 @@ bot.on("guildMemberRemove", (member) => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.login(bot.settings.token);
|
bot.login(bot.settings.token);
|
||||||
+63
-67
@@ -1,69 +1,65 @@
|
|||||||
{
|
{
|
||||||
|
"SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/",
|
||||||
"SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/",
|
"token": "TOKEN",
|
||||||
|
"prefix": "!",
|
||||||
"token": "TOKEN",
|
"botname": "SupportBot",
|
||||||
"prefix": "!",
|
"colour": "#42f477",
|
||||||
"botname": "SupportBot",
|
"footer": "Support Bot, By Emerald",
|
||||||
"colour": "#42f477",
|
|
||||||
"footer": "Support Bot, By Emerald",
|
"BotStatus": "Support Bot",
|
||||||
|
|
||||||
"BotStatus": "Support Bot",
|
"staff": "Staff",
|
||||||
|
"support": "Support",
|
||||||
"staff": "Staff",
|
"everyone": "@everyone",
|
||||||
"support": "Support",
|
"Auto_Role": "Member",
|
||||||
"everyone": "@everyone",
|
|
||||||
|
"category": "Tickets",
|
||||||
"category": "Tickets",
|
"Ticket_Message": "Your support ticket has been opened successfully\nPlease allow us some time to reach out to you.",
|
||||||
"Ticket_Message": "Your support ticket has been opened successfully\nPlease allow us some time to reach out to you.",
|
"Ticket_Logs": "ticket-logs",
|
||||||
"Ticket_Logs": "ticket-logs",
|
|
||||||
|
"Announcement_Title": "SupportBot Announcement",
|
||||||
"Announcement_Title": "SupportBot Announcement",
|
"Announcement_Channel": "announcements",
|
||||||
"Announcement_Channel": "announcements",
|
|
||||||
|
"Welcome_Message": "Welcome to the server!",
|
||||||
"Welcome_Message": "Welcome to the server!",
|
"Welcome_Channel": "welcome",
|
||||||
"Welcome_Channel": "welcome",
|
|
||||||
|
"Leave_Message": "Thank you for visiting us!",
|
||||||
"Leave_Message": "Thank you for visiting us!",
|
"Leave_Channel": "welcome",
|
||||||
"Leave_Channel": "welcome",
|
|
||||||
|
"Poll_Channel": "polls",
|
||||||
"Poll_Channel": "polls",
|
"Poll_Title": "📊 Polls",
|
||||||
"Poll_Title": "📊 Polls",
|
"Reaction_Poll_1": "✅",
|
||||||
"Reaction_Poll_1": "✅",
|
"Reaction_Poll_2": "❎",
|
||||||
"Reaction_Poll_2": "❎",
|
|
||||||
|
"Suggestion_Title": "SupportBot Suggestions",
|
||||||
"Suggestion_Title": "SupportBot Suggestions",
|
"Suggestion_Channel": "suggestions",
|
||||||
"Suggestion_Channel": "suggestions",
|
"suggestyes": "✅",
|
||||||
"suggestyes": "✅",
|
"suggestno": "❎",
|
||||||
"suggestno": "❎",
|
|
||||||
|
"Report_Channel": "reports",
|
||||||
"Report_Channel": "reports",
|
"Report_Title": "SupportBot Report",
|
||||||
"Report_Title": "SupportBot Report",
|
|
||||||
|
"LINKS": {
|
||||||
"LINK_1_NAME": "Discord",
|
"Discord": "https://discord.gg/",
|
||||||
"LINK_2_NAME": "Twitter",
|
"Twitter": "https://twitter.com/",
|
||||||
"LINK_3_NAME": "Website",
|
"Website": "https://example.com/"
|
||||||
|
},
|
||||||
"LINK_1": "https://dicord.gg/changemeinconfig",
|
|
||||||
"LINK_2": "https://twitter.com/changemeinconfig",
|
"LINKS_TITLE": "SupportBot Links",
|
||||||
"LINK_3": "https://www.example.com/",
|
|
||||||
|
"Ticket_Command": "ticket",
|
||||||
"LINKS_TITLE": "SupportBot Links",
|
"Suggest_Command": "suggest",
|
||||||
|
"Say_Command": "say",
|
||||||
"Ticket_Command": "ticket",
|
"Remove_Command": "remove",
|
||||||
"Suggest_Command": "suggest",
|
"Add_Command": "add",
|
||||||
"Say_Command": "say",
|
"Ping_Command": "ping",
|
||||||
"Remove_Command": "remove",
|
"Close_Command": "close",
|
||||||
"Add_Command": "add",
|
"Forceclose_Command": "forceclose",
|
||||||
"Ping_Command": "ping",
|
"Rename_Command": "rename",
|
||||||
"Close_Command": "close",
|
"Help_Command": "help",
|
||||||
"Forceclose_Command": "forceclose",
|
"Link_Command": "links",
|
||||||
"Rename_Command": "rename",
|
"Lockchat_Command": "lock",
|
||||||
"Help_Command": "help",
|
"UnLockchat_Command": "unlock",
|
||||||
"Link_Command": "links",
|
"Poll_Command": "poll",
|
||||||
"Lockchat_Command": "lock",
|
"Report_Command": "report"
|
||||||
"UnLockchat_Command": "unlock",
|
|
||||||
"Poll_Command": "poll",
|
|
||||||
"Report_Command": "report"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user