mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user