mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Fix null
This commit is contained in:
@@ -112,7 +112,7 @@ module.exports = class XiaoClient extends CommandoClient {
|
|||||||
let text = '{';
|
let text = '{';
|
||||||
for (const command of this.registry.commands.values()) {
|
for (const command of this.registry.commands.values()) {
|
||||||
if (command.lastRun === undefined) continue;
|
if (command.lastRun === undefined) continue;
|
||||||
text += `\n "${command.name}": "${command.lastRun ? command.lastRun.toISOString() : null}",`;
|
text += `\n "${command.name}": ${command.lastRun ? `"${command.lastRun.toISOString()}"` : null},`;
|
||||||
}
|
}
|
||||||
text = text.slice(0, -1);
|
text = text.slice(0, -1);
|
||||||
text += '\n}\n';
|
text += '\n}\n';
|
||||||
|
|||||||
Reference in New Issue
Block a user