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
+32 -51

No files matched your search

+15 -21
View File
@@ -28,51 +28,43 @@ 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:
``` ```
{
"SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/",
"token": "TOKEN",
"prefix": "!", "prefix": "!",
"botname": "SupportBot", "botname": "SupportBot",
"colour": "#42f477", "colour": "#42f477",
"footer": "Support Bot, By Emerald", "footer": "Support Bot, By Emerald",
"BotStatus": "Support Bot",
"BotStatus": "Support Bot",.
"staff": "Staff", "staff": "Staff",
"support": "Support Team", "support": "Support",
"everyone": "@everyone", "everyone": "@everyone",
"Auto_Role": "Member", "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_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",
"LINK_1_NAME": "Discord", "Report_Title": "SupportBot Report",
"LINK_2_NAME": "Twitter", "LINKS": {
"LINK_3_NAME": "Website", "Discord": "https://discord.gg/",
"Twitter": "https://twitter.com/",
"LINK_1": "https://dicord.gg/changemeinconfig", "Website": "https://example.com/"
"LINK_2": "https://twitter.com/changemeinconfig", },
"LINK_3": "https://www.example.com/",
"LINKS_TITLE": "SupportBot Links", "LINKS_TITLE": "SupportBot Links",
"Ticket_Command": "ticket", "Ticket_Command": "ticket",
"Suggest_Command": "suggest", "Suggest_Command": "suggest",
"Say_Command": "say", "Say_Command": "say",
@@ -86,7 +78,9 @@ Once you have setup your discord application such as invited the bot and added y
"Link_Command": "links", "Link_Command": "links",
"Lockchat_Command": "lock", "Lockchat_Command": "lock",
"UnLockchat_Command": "unlock", "UnLockchat_Command": "unlock",
"Poll_Command": "poll" "Poll_Command": "poll",
"Report_Command": "report"
}
``` ```
# Contributors List # Contributors List
+12 -8
View File
@@ -9,17 +9,21 @@ 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) 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 ) .setColor( bot.settings.colour )
.setFooter( bot.settings.footer ) .setFooter( bot.settings.footer )
message.channel.send(links)
message.channel.send( embed );
console.log( `\x1b[36m`, `${message.author} has executed ${bot.settings.prefix}${bot.settings.Link_Command}` ) console.log( `\x1b[36m`, `${message.author} has executed ${bot.settings.prefix}${bot.settings.Link_Command}` )
+5 -22
View File
@@ -1,56 +1,40 @@
{ {
"SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/", "SupportBot": "v3.4 / Download addons @ https://itzemerald.tk/",
"token": "TOKEN", "token": "TOKEN",
"prefix": "!", "prefix": "!",
"botname": "SupportBot", "botname": "SupportBot",
"colour": "#42f477", "colour": "#42f477",
"footer": "Support Bot, By Emerald", "footer": "Support Bot, By Emerald",
"BotStatus": "Support Bot", "BotStatus": "Support Bot",
"staff": "Staff", "staff": "Staff",
"support": "Support", "support": "Support",
"everyone": "@everyone", "everyone": "@everyone",
"Auto_Role": "Member", "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_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",
"LINK_3": "https://www.example.com/",
"LINKS_TITLE": "SupportBot Links", "LINKS_TITLE": "SupportBot Links",
"Ticket_Command": "ticket", "Ticket_Command": "ticket",
"Suggest_Command": "suggest", "Suggest_Command": "suggest",
"Say_Command": "say", "Say_Command": "say",
@@ -66,5 +50,4 @@
"UnLockchat_Command": "unlock", "UnLockchat_Command": "unlock",
"Poll_Command": "poll", "Poll_Command": "poll",
"Report_Command": "report" "Report_Command": "report"
} }