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