This commit is contained in:
Dragon Fire
2020-10-31 11:15:24 -04:00
parent 09eb81e395
commit 3da6e1e334
+2 -2
View File
@@ -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;
}