mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Remove second rotation
This commit is contained in:
@@ -38,9 +38,7 @@ module.exports = class ThisIsWorthlessCommand extends Command {
|
|||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.rotate(6 * (Math.PI / 180));
|
ctx.rotate(6 * (Math.PI / 180));
|
||||||
ctx.drawImage(avatar, 496, 183, 400, 400);
|
ctx.drawImage(avatar, 496, 183, 400, 400);
|
||||||
ctx.rotate(163 * (Math.PI / 180));
|
ctx.rotate(-6 * (Math.PI / 180));
|
||||||
ctx.drawImage(avatar, 957, 1434, 70, 70);
|
|
||||||
ctx.rotate(-168 * (Math.PI / 180));
|
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'this-is-worthless.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'this-is-worthless.png' }] });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user