mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
canvas, people
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = class IHaveThePowerCommand extends Command {
|
|||||||
const avatar = await loadImage(body);
|
const avatar = await loadImage(body);
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.rotate(18.3 * (Math.PI / 180));
|
ctx.rotate(18.3 * (Math.PI / 180));
|
||||||
ctx.drawImage(avatar, 330, -15, 175, 175);
|
ctx.drawImage(avatar, 332, -35, 175, 175);
|
||||||
ctx.rotate(-18.3 * (Math.PI / 180));
|
ctx.rotate(-18.3 * (Math.PI / 180));
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'i-have-the-power.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'i-have-the-power.png' }] });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user