mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Yeah this was it
This commit is contained in:
@@ -46,7 +46,7 @@ module.exports = class MorseCommand extends Command {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const letter = letters[i];
|
const letter = letters[i];
|
||||||
const timeUnit = 180;
|
const timeUnit = 250;
|
||||||
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(timeUnit);
|
await delay(timeUnit);
|
||||||
|
|||||||
Reference in New Issue
Block a user