mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Beep
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class PhotographCommand extends Command {
|
||||
const avatar = await loadImage(body);
|
||||
ctx.drawImage(base, 0, 0);
|
||||
ctx.rotate(-8.21 * (Math.PI / 180));
|
||||
ctx.drawImage(avatar, 96, 106, 150, 150);
|
||||
ctx.drawImage(avatar, 90, 101, 150, 150);
|
||||
ctx.rotate(8.21 * (Math.PI / 180));
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'photograph.png' }] });
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user