mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix null
This commit is contained in:
@@ -112,7 +112,7 @@ module.exports = class XiaoClient extends CommandoClient {
|
||||
let text = '{';
|
||||
for (const command of this.registry.commands.values()) {
|
||||
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 += '\n}\n';
|
||||
|
||||
Reference in New Issue
Block a user