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
+122 -141

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: 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",
"Auto_Role": "Member", "everyone": "@everyone",
"Auto_Role": "Member",
"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_Channel": "welcome",
"Welcome_Message": "Welcome to the server!", "Leave_Message": "Thank you for visiting us!",
"Welcome_Channel": "welcome", "Leave_Channel": "welcome",
"Poll_Channel": "polls",
"Leave_Message": "Thank you for visiting us!", "Poll_Title": "📊 Polls",
"Leave_Channel": "welcome", "Reaction_Poll_1": "✅",
"Reaction_Poll_2": "❎",
"Poll_Channel": "polls", "Suggestion_Title": "SupportBot Suggestions",
"Poll_Title": "📊 Polls", "Suggestion_Channel": "suggestions",
"Reaction_Poll_1": "✅", "suggestyes": "✅",
"Reaction_Poll_2": "❎", "suggestno": "❎",
"Report_Channel": "reports",
"Suggestion_Title": "SupportBot Suggestions", "Report_Title": "SupportBot Report",
"Suggestion_Channel": "suggestions", "LINKS": {
"suggestyes": "✅", "Discord": "https://discord.gg/",
"suggestno": "❎", "Twitter": "https://twitter.com/",
"Website": "https://example.com/"
"LINK_1_NAME": "Discord", },
"LINK_2_NAME": "Twitter", "LINKS_TITLE": "SupportBot Links",
"LINK_3_NAME": "Website", "Ticket_Command": "ticket",
"Suggest_Command": "suggest",
"LINK_1": "https://dicord.gg/changemeinconfig", "Say_Command": "say",
"LINK_2": "https://twitter.com/changemeinconfig", "Remove_Command": "remove",
"LINK_3": "https://www.example.com/", "Add_Command": "add",
"Ping_Command": "ping",
"LINKS_TITLE": "SupportBot Links", "Close_Command": "close",
"Forceclose_Command": "forceclose",
"Ticket_Command": "ticket", "Rename_Command": "rename",
"Suggest_Command": "suggest", "Help_Command": "help",
"Say_Command": "say", "Link_Command": "links",
"Remove_Command": "remove", "Lockchat_Command": "lock",
"Add_Command": "add", "UnLockchat_Command": "unlock",
"Ping_Command": "ping", "Poll_Command": "poll",
"Close_Command": "close", "Report_Command": "report"
"Forceclose_Command": "forceclose", }
"Rename_Command": "rename",
"Help_Command": "help",
"Link_Command": "links",
"Lockchat_Command": "lock",
"UnLockchat_Command": "unlock",
"Poll_Command": "poll"
``` ```
# Contributors List # Contributors List
+18 -14
View File
@@ -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}` )
} }
+51 -68
View File
@@ -1,70 +1,53 @@
{ {
"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", "BotStatus": "Support Bot",
"footer": "Support Bot, By Emerald", "staff": "Staff",
"support": "Support",
"BotStatus": "Support Bot", "everyone": "@everyone",
"Auto_Role": "Member",
"staff": "Staff", "category": "Tickets",
"support": "Support", "Ticket_Message": "Your support ticket has been opened successfully\nPlease allow us some time to reach out to you.",
"everyone": "@everyone", "Ticket_Logs": "ticket-logs",
"Auto_Role": "Member", "Announcement_Title": "SupportBot Announcement",
"Announcement_Channel": "announcements",
"category": "Tickets", "Welcome_Message": "Welcome to the server!",
"Ticket_Message": "Your support ticket has been opened successfully\nPlease allow us some time to reach out to you.", "Welcome_Channel": "welcome",
"Ticket_Logs": "ticket-logs", "Leave_Message": "Thank you for visiting us!",
"Leave_Channel": "welcome",
"Announcement_Title": "SupportBot Announcement", "Poll_Channel": "polls",
"Announcement_Channel": "announcements", "Poll_Title": "📊 Polls",
"Reaction_Poll_1": "✅",
"Welcome_Message": "Welcome to the server!", "Reaction_Poll_2": "❎",
"Welcome_Channel": "welcome", "Suggestion_Title": "SupportBot Suggestions",
"Suggestion_Channel": "suggestions",
"Leave_Message": "Thank you for visiting us!", "suggestyes": "✅",
"Leave_Channel": "welcome", "suggestno": "❎",
"Report_Channel": "reports",
"Poll_Channel": "polls", "Report_Title": "SupportBot Report",
"Poll_Title": "📊 Polls", "LINKS": {
"Reaction_Poll_1": "✅", "Discord": "https://discord.gg/",
"Reaction_Poll_2": "❎", "Twitter": "https://twitter.com/",
"Website": "https://example.com/"
"Suggestion_Title": "SupportBot Suggestions", },
"Suggestion_Channel": "suggestions", "LINKS_TITLE": "SupportBot Links",
"suggestyes": "✅", "Ticket_Command": "ticket",
"suggestno": "❎", "Suggest_Command": "suggest",
"Say_Command": "say",
"Report_Channel": "reports", "Remove_Command": "remove",
"Report_Title": "SupportBot Report", "Add_Command": "add",
"Ping_Command": "ping",
"LINK_1_NAME": "Discord", "Close_Command": "close",
"LINK_2_NAME": "Twitter", "Forceclose_Command": "forceclose",
"LINK_3_NAME": "Website", "Rename_Command": "rename",
"Help_Command": "help",
"LINK_1": "https://dicord.gg/changemeinconfig", "Link_Command": "links",
"LINK_2": "https://twitter.com/changemeinconfig", "Lockchat_Command": "lock",
"LINK_3": "https://www.example.com/", "UnLockchat_Command": "unlock",
"Poll_Command": "poll",
"LINKS_TITLE": "SupportBot Links", "Report_Command": "report"
"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"
} }