mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Fix
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = class ColorCommand extends Command {
|
|||||||
const name = ntc.name(color);
|
const name = ntc.name(color);
|
||||||
ctx.fillStyle = color.toLowerCase();
|
ctx.fillStyle = color.toLowerCase();
|
||||||
ctx.fillRect(0, 0, 250, 250);
|
ctx.fillRect(0, 0, 250, 250);
|
||||||
return msg.say(`#${color.toUpperCase()} - ${name[1]}`, {
|
return msg.say(`${color.toUpperCase()} - ${name[1]}`, {
|
||||||
files: [{ attachment: canvas.toBuffer(), name: 'color.png' }]
|
files: [{ attachment: canvas.toBuffer(), name: 'color.png' }]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user