misc.color: forgot encoding

This commit is contained in:
Cynthia Foxwell 2024-07-31 21:38:13 -06:00
parent d29be7a47f
commit 3d7b918130

View file

@ -630,7 +630,7 @@ searchInteraction.callback = async function (interaction) {
};
hf.registerCommand(searchInteraction);
const colornamesRaw = fs.readFileSync(resolve(__dirname, "../../data/colornames.csv")).split("\n");
const colornamesRaw = fs.readFileSync(resolve(__dirname, "../../data/colornames.csv"), "utf8").split("\n");
colornamesRaw.shift();
const colornamesMapped = colornamesRaw.map((line) => {
const [hex, name] = line.split(",");