mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix undefined
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports = class ChineseRestaurantCommand extends Command {
|
||||
ctx.fillText(lines[0], base.width / 2, 261);
|
||||
ctx.fillText(lines[1], base.width / 2, 288);
|
||||
ctx.fillText(lines[2], base.width / 2, 315);
|
||||
ctx.fillText(lines[4], base.width / 2, 342);
|
||||
ctx.fillText(lines[3], base.width / 2, 342);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'chinese-restaurant.png' }] });
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ module.exports = class HighwaySignCommand extends Command {
|
||||
ctx.fillText(lines[0], 318, 90);
|
||||
ctx.fillText(lines[1], 318, 109);
|
||||
ctx.fillText(lines[2], 318, 128);
|
||||
ctx.fillText(lines[4], 318, 147);
|
||||
ctx.fillText(lines[3], 318, 147);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'highway-sign.png' }] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user