mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = class DominantColorCommand extends Command {
|
||||
ctx.fillStyle = hexColor;
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
const name = ntc.name(hexColor);
|
||||
return msg.say(`${hexColor.toUpperCase()} - ${name}`, {
|
||||
return msg.say(`${hexColor.toUpperCase()} - ${name[1]}`, {
|
||||
files: [{ attachment: canvas.toBuffer(), name: 'dominant-color.png' }]
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user