mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Fix
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class CommandLeaderboardImportCommand extends Command {
|
|||||||
});
|
});
|
||||||
file = JSON.parse(read);
|
file = JSON.parse(read);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say(`Could not read \`command-leaderboard.json\`: ${err.message}`);
|
return msg.say(`Could not read \`command-leaderboard.json\`: \`${err.message}\`.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (typeof file !== 'object' || Array.isArray(file)) return msg.reply('Please provide a valid JSON file.');
|
if (typeof file !== 'object' || Array.isArray(file)) return msg.reply('Please provide a valid JSON file.');
|
||||||
|
|||||||
Reference in New Issue
Block a user