mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -134,15 +134,15 @@ module.exports = class YuGiOhGenCommand extends Command {
|
||||
typeStr += ' ]';
|
||||
ctx.fillText(typeStr, 60, 894);
|
||||
ctx.font = '29px Stone Serif';
|
||||
ctx.fillText(atk, 514, 1081);
|
||||
ctx.fillText(def, monsterType === 'link' ? 722 : 675, 1081);
|
||||
ctx.fillText(atk, 512, 1081);
|
||||
ctx.fillText(def, monsterType === 'link' ? 720 : 673, 1081);
|
||||
}
|
||||
ctx.font = '27px Matrix Book';
|
||||
const wrappedEffect = await wrapText(ctx, effect, 690);
|
||||
ctx.fillText(wrappedEffect.join('\n'), 63, 930 - (type === 'monster' ? 0 : 31));
|
||||
ctx.font = '22px Stone Serif';
|
||||
ctx.fillText(id.toString().padStart(8, '0'), 43, 1128);
|
||||
ctx.fillText(`XIAO-EN${setID.toString().padStart(3, '0')}`, 589, 854);
|
||||
ctx.fillText(`XIAO-EN${setID.toString().padStart(3, '0')}`, 589, 849);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'yu-gi-oh-gen.png' }] });
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
Reference in New Issue
Block a user