mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Fix
This commit is contained in:
@@ -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.');
|
if (age === 'all') return msg.reply('Everyone should be able to hear that. You cannot hear.');
|
||||||
return msg.reply(`You have the hearing of someone **${age} or younger**.`);
|
return msg.reply(`You have the hearing of someone **${Number.parseInt(age, 10) + 1} or older**.`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user