mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Twice as fast again
This commit is contained in:
@@ -46,20 +46,20 @@ module.exports = class MorseCommand extends Command {
|
||||
const letter = letters[i];
|
||||
if (letter === '.') {
|
||||
connection.play(path.join(__dirname, '..', '..', 'assets', 'sounds', 'morse', 'dot.mp3'));
|
||||
await delay(500);
|
||||
await delay(250);
|
||||
continue;
|
||||
}
|
||||
if (letter === '-') {
|
||||
connection.play(path.join(__dirname, '..', '..', 'assets', 'sounds', 'morse', 'dash.mp3'));
|
||||
await delay(500);
|
||||
await delay(250);
|
||||
continue;
|
||||
}
|
||||
if (letter === ' ' && letters[i + 1] === ' ') {
|
||||
skip = true;
|
||||
await delay(3500);
|
||||
await delay(1750);
|
||||
continue;
|
||||
}
|
||||
await delay(1500);
|
||||
await delay(750);
|
||||
}
|
||||
await reactIfAble(msg, msg.author, SUCCESS_EMOJI_ID, '✅');
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user