This commit is contained in:
Dragon Fire
2021-05-13 17:50:20 -04:00
parent fa08688755
commit 86a0377abe
+1 -1
View File
@@ -76,7 +76,7 @@ module.exports = class WhiteboardCommand extends Command {
const resolveTopMost = 500 - (((fontSize * resolveLines.length) / 2) + ((10 * (resolveLines.length - 1)) / 2));
for (let i = 0; i < resolveLines.length; i++) {
const height = resolveTopMost + ((fontSize + 10) * i);
ctx.fillText(resolveLines[i], 190, height);
ctx.fillText(resolveLines[i], 195, height);
}
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'whiteboard.png' }] });
} catch (err) {