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