diff --git a/commands/search/periodic-table.js b/commands/search/periodic-table.js index 96fa1751..04dad752 100644 --- a/commands/search/periodic-table.js +++ b/commands/search/periodic-table.js @@ -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` }] } ); }