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