From e4576bfc74af9949de7227213647da952463f74e Mon Sep 17 00:00:00 2001 From: Cynthia Date: Sat, 3 Dec 2022 12:29:26 -0700 Subject: [PATCH] foxwells.vinboard: just use pastelized color --- src/modules/foxwells.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/foxwells.js b/src/modules/foxwells.js index 41750d3..e44db53 100644 --- a/src/modules/foxwells.js +++ b/src/modules/foxwells.js @@ -5,7 +5,7 @@ const CATEGORY = "misc"; const FOXWELLS_GUILD_ID = "300436792916836352"; const {tinycolor} = require("@ctrl/tinycolor"); -const {pastelize, getTopColor} = require("../lib/utils.js"); +const {pastelize} = require("../lib/utils.js"); const logger = require("../lib/logger.js"); @@ -210,7 +210,7 @@ async function findSuitableImage(msg) { async function createBoardMessage(msg, count, fetchAttachment = true) { const embed = { title: `${count} \u2b50`, - color: getTopColor(msg, msg.author.id, pastelize(msg.author.id)), + color: pastelize(msg.author.username), description: msg.content, fields: [ { @@ -333,6 +333,7 @@ async function processReaction(_msg, user, reaction) { (attach) => ({id: attach.id}) ); props.embeds[0].title = `${trueCount} \u2b50`; + props.embeds[0].color = pastelize(msg.author.username); await vinboard_webhook.editMessage(_boardMessage.id, props); await setBoardEntry(msg.id, trueCount, _boardMessage.id); } else {