mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
canvas succccccc
This commit is contained in:
@@ -57,10 +57,10 @@ module.exports = class DemotivationalPosterCommand extends Command {
|
||||
ctx.textAlign = 'center';
|
||||
ctx.font = '60px Noto';
|
||||
ctx.fillStyle = 'aquamarine';
|
||||
ctx.fillText(title, 375, 478);
|
||||
ctx.fillText(title, 375, 508);
|
||||
ctx.font = '27px Noto';
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.fillText(text, 375, 550);
|
||||
ctx.fillText(text, 375, 580);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'demotivational-poster.png' }] });
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
Reference in New Issue
Block a user