Update 'links' command and it's settings

This commit is contained in:
RedsoneGamez committed 2019-06-18 13:09:00 -03:00
1 parent 45194b82da
commit 599649a97f
3 files changed
+123 -142

No files matched your search

+53 -59
View File
@@ -28,65 +28,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:
```
"prefix": "!",
"botname": "SupportBot",
"colour": "#42f477",
"footer": "Support Bot, By Emerald",
"BotStatus": "Support Bot",.
"staff": "Staff",
"support": "Support Team",
"everyone": "@everyone",
"Auto_Role": "Member",
"category": "Tickets",
"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_Channel": "announcements",
"Welcome_Message": "Welcome to the server!",
"Welcome_Channel": "welcome",
"Leave_Message": "Thank you for visiting us!",
"Leave_Channel": "welcome",
"Poll_Channel": "polls",
"Poll_Title": "📊 Polls",
"Reaction_Poll_1": "✅",
"Reaction_Poll_2": "❎",
"Suggestion_Title": "SupportBot Suggestions",
"Suggestion_Channel": "suggestions",
"suggestyes": "✅",
"suggestno": "❎",
"LINK_1_NAME": "Discord",
"LINK_2_NAME": "Twitter",
"LINK_3_NAME": "Website",
"LINK_1": "https://dicord.gg/changemeinconfig",
"LINK_2": "https://twitter.com/changemeinconfig",
"LINK_3": "https://www.example.com/",
"LINKS_TITLE": "SupportBot Links",
"Ticket_Command": "ticket",
"Suggest_Command": "suggest",
"Say_Command": "say",
"Remove_Command": "remove",
"Add_Command": "add",
"Ping_Command": "ping",
"Close_Command": "close",
"Forceclose_Command": "forceclose",
"Rename_Command": "rename",
"Help_Command": "help",
"Link_Command": "links",
"Lockchat_Command": "lock",
"UnLockchat_Command": "unlock",
"Poll_Command": "poll"
{
"SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/",
"token": "TOKEN",
"prefix": "!",
"botname": "SupportBot",
"colour": "#42f477",
"footer": "Support Bot, By Emerald",
"BotStatus": "Support Bot",
"staff": "Staff",
"support": "Support",
"everyone": "@everyone",
"Auto_Role": "Member",
"category": "Tickets",
"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_Channel": "announcements",
"Welcome_Message": "Welcome to the server!",
"Welcome_Channel": "welcome",
"Leave_Message": "Thank you for visiting us!",
"Leave_Channel": "welcome",
"Poll_Channel": "polls",
"Poll_Title": "📊 Polls",
"Reaction_Poll_1": "✅",
"Reaction_Poll_2": "❎",
"Suggestion_Title": "SupportBot Suggestions",
"Suggestion_Channel": "suggestions",
"suggestyes": "✅",
"suggestno": "❎",
"Report_Channel": "reports",
"Report_Title": "SupportBot Report",
"LINKS": {
"Discord": "https://discord.gg/",
"Twitter": "https://twitter.com/",
"Website": "https://example.com/"
},
"LINKS_TITLE": "SupportBot Links",
"Ticket_Command": "ticket",
"Suggest_Command": "suggest",
"Say_Command": "say",
"Remove_Command": "remove",
"Add_Command": "add",
"Ping_Command": "ping",
"Close_Command": "close",
"Forceclose_Command": "forceclose",
"Rename_Command": "rename",
"Help_Command": "help",
"Link_Command": "links",
"Lockchat_Command": "lock",
"UnLockchat_Command": "unlock",
"Poll_Command": "poll",
"Report_Command": "report"
}
```
# Contributors List
+18 -14
View File
@@ -1,27 +1,31 @@
// SupportBot
// Command: Help
const Discord = require("discord.js");
const Discord = require( "discord.js" );
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();
let BotLinks = "";
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`;
let botLinks = bot.settings.LINKS;
const links = new Discord.RichEmbed()
.setTitle(`${bot.settings.LINKS_TITLE}`)
.setDescription(BotLinks)
.setColor(bot.settings.colour)
.setFooter(bot.settings.footer)
message.channel.send(links)
let 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}` )
}
+52 -69
View File
@@ -1,70 +1,53 @@
{
"SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/",
"token": "TOKEN",
"prefix": "!",
"botname": "SupportBot",
"colour": "#42f477",
"footer": "Support Bot, By Emerald",
"BotStatus": "Support Bot",
"staff": "Staff",
"support": "Support",
"everyone": "@everyone",
"Auto_Role": "Member",
"category": "Tickets",
"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_Channel": "announcements",
"Welcome_Message": "Welcome to the server!",
"Welcome_Channel": "welcome",
"Leave_Message": "Thank you for visiting us!",
"Leave_Channel": "welcome",
"Poll_Channel": "polls",
"Poll_Title": "📊 Polls",
"Reaction_Poll_1": "✅",
"Reaction_Poll_2": "❎",
"Suggestion_Title": "SupportBot Suggestions",
"Suggestion_Channel": "suggestions",
"suggestyes": "✅",
"suggestno": "❎",
"Report_Channel": "reports",
"Report_Title": "SupportBot Report",
"LINK_1_NAME": "Discord",
"LINK_2_NAME": "Twitter",
"LINK_3_NAME": "Website",
"LINK_1": "https://dicord.gg/changemeinconfig",
"LINK_2": "https://twitter.com/changemeinconfig",
"LINK_3": "https://www.example.com/",
"LINKS_TITLE": "SupportBot Links",
"Ticket_Command": "ticket",
"Suggest_Command": "suggest",
"Say_Command": "say",
"Remove_Command": "remove",
"Add_Command": "add",
"Ping_Command": "ping",
"Close_Command": "close",
"Forceclose_Command": "forceclose",
"Rename_Command": "rename",
"Help_Command": "help",
"Link_Command": "links",
"Lockchat_Command": "lock",
"UnLockchat_Command": "unlock",
"Poll_Command": "poll",
"Report_Command": "report"
}
"SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/",
"token": "TOKEN",
"prefix": "!",
"botname": "SupportBot",
"colour": "#42f477",
"footer": "Support Bot, By Emerald",
"BotStatus": "Support Bot",
"staff": "Staff",
"support": "Support",
"everyone": "@everyone",
"Auto_Role": "Member",
"category": "Tickets",
"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_Channel": "announcements",
"Welcome_Message": "Welcome to the server!",
"Welcome_Channel": "welcome",
"Leave_Message": "Thank you for visiting us!",
"Leave_Channel": "welcome",
"Poll_Channel": "polls",
"Poll_Title": "📊 Polls",
"Reaction_Poll_1": "✅",
"Reaction_Poll_2": "❎",
"Suggestion_Title": "SupportBot Suggestions",
"Suggestion_Channel": "suggestions",
"suggestyes": "✅",
"suggestno": "❎",
"Report_Channel": "reports",
"Report_Title": "SupportBot Report",
"LINKS": {
"Discord": "https://discord.gg/",
"Twitter": "https://twitter.com/",
"Website": "https://example.com/"
},
"LINKS_TITLE": "SupportBot Links",
"Ticket_Command": "ticket",
"Suggest_Command": "suggest",
"Say_Command": "say",
"Remove_Command": "remove",
"Add_Command": "add",
"Ping_Command": "ping",
"Close_Command": "close",
"Forceclose_Command": "forceclose",
"Rename_Command": "rename",
"Help_Command": "help",
"Link_Command": "links",
"Lockchat_Command": "lock",
"UnLockchat_Command": "unlock",
"Poll_Command": "poll",
"Report_Command": "report"
}