mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
canvas, people
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = class IHaveThePowerCommand extends Command {
|
||||
const avatar = await loadImage(body);
|
||||
ctx.drawImage(base, 0, 0);
|
||||
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));
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'i-have-the-power.png' }] });
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user