From bb22d79cd0a2c330be2b5e69fbb9dae92979609f Mon Sep 17 00:00:00 2001 From: Juan Pablo Garcia <45505790+JPGarCar@users.noreply.github.com> Date: Sun, 29 Nov 2020 12:11:45 -0600 Subject: [PATCH] Color Update Added different color to !ask embeds, now bright yellow. Also, mentor specific embeds use the role's color. --- commands/a_activity/init-workshop.js | 7 +++++-- commands/utility/ask.js | 2 +- discord-services.js | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/commands/a_activity/init-workshop.js b/commands/a_activity/init-workshop.js index 4d9db777..f8f1c8d4 100644 --- a/commands/a_activity/init-workshop.js +++ b/commands/a_activity/init-workshop.js @@ -90,10 +90,13 @@ module.exports = class InitWorkshop extends Command { ] }); + // embed color for mentors + var mentorColor = (await message.guild.roles.fetch(discordServices.mentorRole)).color + //makes ta console for workshop var targetChannel = message.guild.channels.cache.find(channel => channel.name === (activityName + "-ta-console")); const consoleEmbed = new Discord.MessageEmbed() - .setColor(discordServices.embedColor) + .setColor(mentorColor) .setTitle('Main console for ' + activityName) .setDescription('Here are some commands:\n' + '🏕️ Will activate a stamp distribution that will be open for 20 seconds.\n' + @@ -131,7 +134,7 @@ module.exports = class InitWorkshop extends Command { // embed message for TA console const taEmbed = new Discord.MessageEmbed() - .setColor(discordServices.embedColor) + .setColor(mentorColor) .setTitle('The Wait List') .setDescription('This is the wait list, it will always stay up to date! To get the next hacker that needs help click 🤝'); diff --git a/commands/utility/ask.js b/commands/utility/ask.js index 80d34e4d..fc9a9aaf 100644 --- a/commands/utility/ask.js +++ b/commands/utility/ask.js @@ -46,7 +46,7 @@ module.exports = class AskQuestion extends Command { // message embed to be used for question const qEmbed = new Discord.MessageEmbed() - .setColor(discordServices.embedColor) + .setColor(discordServices.questionEmbedColor) .setTitle('Question from ' + message.author.username) .setDescription(question); diff --git a/discord-services.js b/discord-services.js index 0ad05e04..456c0836 100644 --- a/discord-services.js +++ b/discord-services.js @@ -48,6 +48,8 @@ module.exports.stamp12Role = stamp12Role; // other project wide vars var embedColor = '#0099ff' module.exports.embedColor = embedColor; +var questionEmbedColor = '#f4ff26' +module.exports.questionEmbedColor = questionEmbedColor; // Common channels