mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
Add some undiscovered elements
This commit is contained in:
@@ -951,6 +951,60 @@
|
|||||||
"period": 7,
|
"period": 7,
|
||||||
"phase": "Solid",
|
"phase": "Solid",
|
||||||
"symbol": "Og"
|
"symbol": "Og"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Ununennium",
|
||||||
|
"mass": 315,
|
||||||
|
"number": 119,
|
||||||
|
"period": 8,
|
||||||
|
"phase": "Solid",
|
||||||
|
"symbol": "Uue",
|
||||||
|
"undiscovered": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Unbinilium",
|
||||||
|
"mass": 299,
|
||||||
|
"number": 120,
|
||||||
|
"period": 8,
|
||||||
|
"phase": "Solid",
|
||||||
|
"symbol": "Ubn",
|
||||||
|
"undiscovered": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Unbiunium",
|
||||||
|
"mass": 320,
|
||||||
|
"number": 121,
|
||||||
|
"period": 8,
|
||||||
|
"phase": null,
|
||||||
|
"symbol": "Ubu",
|
||||||
|
"undiscovered": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Unbibium",
|
||||||
|
"mass": null,
|
||||||
|
"number": 122,
|
||||||
|
"period": 8,
|
||||||
|
"phase": null,
|
||||||
|
"symbol": "Ubb",
|
||||||
|
"undiscovered": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Unbitrium",
|
||||||
|
"mass": null,
|
||||||
|
"number": 123,
|
||||||
|
"period": 8,
|
||||||
|
"phase": null,
|
||||||
|
"symbol": "Ubt",
|
||||||
|
"undiscovered": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Unbiquadium",
|
||||||
|
"mass": null,
|
||||||
|
"number": 124,
|
||||||
|
"period": 8,
|
||||||
|
"phase": null,
|
||||||
|
"symbol": "Ubq",
|
||||||
|
"undiscovered": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"colors": {
|
"colors": {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ module.exports = class PeriodicTableCommand extends Command {
|
|||||||
ctx.drawImage(batman, 100, 166);
|
ctx.drawImage(batman, 100, 166);
|
||||||
} else {
|
} else {
|
||||||
ctx.font = '210px Noto';
|
ctx.font = '210px Noto';
|
||||||
ctx.fillStyle = colors[element.phase];
|
ctx.fillStyle = colors[element.phase] || 'gray';
|
||||||
ctx.fillText(element.symbol, 250, 320);
|
ctx.fillText(element.symbol, 250, 320);
|
||||||
}
|
}
|
||||||
ctx.fillStyle = 'black';
|
ctx.fillStyle = 'black';
|
||||||
@@ -71,10 +71,11 @@ module.exports = class PeriodicTableCommand extends Command {
|
|||||||
ctx.fillText(element.number, 250, 100);
|
ctx.fillText(element.number, 250, 100);
|
||||||
ctx.fillText(element.name, 250, 450);
|
ctx.fillText(element.name, 250, 450);
|
||||||
ctx.font = '30px Noto';
|
ctx.font = '30px Noto';
|
||||||
ctx.fillText(element.mass, 250, 400);
|
ctx.fillText(element.mass || '?', 250, 400);
|
||||||
const period = element.number === 0 ? element.period : `period ${element.period}`;
|
const period = element.number === 0 ? element.period : `period ${element.period}`;
|
||||||
|
const phase = element.undiscovered ? `hypothetical ${element.phase || 'element'}` : element.phase;
|
||||||
return msg.say(
|
return msg.say(
|
||||||
`**${element.name} (${element.symbol})** is a ${element.phase} in ${period}.`,
|
`**${element.name} (${element.symbol})** is a ${phase} in ${period}.`,
|
||||||
{ files: [{ attachment: canvas.toBuffer(), name: `${element.name}.png` }] }
|
{ files: [{ attachment: canvas.toBuffer(), name: `${element.name}.png` }] }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "109.4.1",
|
"version": "109.4.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user