mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -38,10 +38,10 @@ module.exports = class HearingTestCommand extends Command {
|
||||
let age;
|
||||
for (const { age: dataAge, file } of data) {
|
||||
connection.play(path.join(__dirname, '..', '..', 'assets', 'sounds', 'hearing-test', file));
|
||||
await delay(4000);
|
||||
await delay(3500);
|
||||
await msg.reply('Did you hear that sound? Reply with [y]es or [n]o.');
|
||||
const heard = await verify(msg.channel, msg.author);
|
||||
if (!heard) {
|
||||
if (!heard || file === data[data.length - 1].file) {
|
||||
age = dataAge;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user