mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 23:05:04 +02:00
Fix
This commit is contained in:
@@ -45,6 +45,6 @@ module.exports = class DexterCommand extends Command {
|
||||
const { x, y, width, height } = centerImagePart(data, 225, 225, 234, 274);
|
||||
ctx.drawImage(data, x, y, width, height);
|
||||
ctx.rotate(11 * (Math.PI / 180));
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'dexter.png' }] });
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'dexter.png' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user