foxwells.vinboard: just use pastelized color
This commit is contained in:
parent
72315f5248
commit
e4576bfc74
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue