mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix Jerktonium period
This commit is contained in:
@@ -100,7 +100,9 @@ module.exports = class PeriodicTableCommand extends Command {
|
||||
ctx.fillText(element.name, 250, 450);
|
||||
ctx.font = this.client.fonts.get('Noto-Regular.ttf').toCanvasString(30);
|
||||
ctx.fillText(element.atomic_mass ? element.atomic_mass.toString() : '?', 250, 400);
|
||||
const period = element.number === 0 ? element.period : `period ${element.period}`;
|
||||
const period = element.number === 0 || element.number === 1999
|
||||
? element.period
|
||||
: `period ${element.period}`;
|
||||
const phase = element.undiscovered ? `hypothetical ${element.phase || 'element'}` : element.phase;
|
||||
return msg.say(
|
||||
`**${element.name} (${element.symbol})** is a ${phase} in ${period}.`,
|
||||
|
||||
Reference in New Issue
Block a user