Better age display

This commit is contained in:
Dragon Fire
2020-10-31 11:18:59 -04:00
parent b8252a2ff2
commit 9cbf94a228
+1 -1
View File
@@ -47,7 +47,7 @@ module.exports = class HearingTestCommand extends Command {
}
}
if (age === 'all') return msg.reply('Everyone should be able to hear that. You cannot hear.');
return msg.reply(`You have the hearing of a **${Number.parseInt(age, 10) + 1} year old**.`);
return msg.reply(`You have the hearing of someone **${age} or younger**.`);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}