mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 02:45:22 +02:00
Period
This commit is contained in:
@@ -64,8 +64,9 @@ module.exports = class PeriodicTableCommand extends Command {
|
||||
ctx.fillText(element.name, 250, 450);
|
||||
ctx.font = '30px Noto';
|
||||
ctx.fillText(element.mass, 250, 400);
|
||||
const period = element.number === 0 ? `period ${element.period}` : element.period;
|
||||
return msg.say(
|
||||
`**${element.name} (${element.symbol})** is a ${element.phase} in period ${element.period}.`,
|
||||
`**${element.name} (${element.symbol})** is a ${element.phase} in ${period}.`,
|
||||
{ files: [{ attachment: canvas.toBuffer(), name: `${element.name}.png` }] }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user