Reverse the rotation

This commit is contained in:
Dragon Fire
2020-03-11 14:33:13 -04:00
parent d69801c0fb
commit 797a87281d
+2 -2
View File
@@ -54,10 +54,10 @@ module.exports = class SosCommand extends Command {
ctx.fillStyle = 'black';
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.rotate(-15 * (Math.PI / 180));
ctx.rotate(15 * (Math.PI / 180));
const lines = await wrapText(ctx, message, 130);
ctx.fillText(lines.join('\n'), 362, 522);
ctx.rotate(15 * (Math.PI / 180));
ctx.rotate(-15 * (Math.PI / 180));
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'sos.png' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);