Skip to content

Commit 77101d8

Browse files
committed
chore: Combine letters for lettersample
1 parent db35d79 commit 77101d8

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/ps/commands/lettersample.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ export const command: PSCommand = {
1515
const input = arg ? parsePoint(arg) : [5, 5];
1616
if (!input) throw new ChatError($T('INVALID_ARGUMENTS'));
1717
const [vowelCount, consonantCount] = input;
18-
const vowels = Array.from({ length: vowelCount }, () => VOWELS.random())
19-
.sort()
20-
.list($T);
21-
const consonants = Array.from({ length: consonantCount }, () => CONSONANTS.random())
22-
.sort()
23-
.list($T);
24-
broadcast(`${vowels} ${consonants}` as NoTranslate);
18+
const letters = [
19+
...Array.from({ length: vowelCount }, () => VOWELS.random()),
20+
...Array.from({ length: consonantCount }, () => CONSONANTS.random()),
21+
];
22+
broadcast(letters.sort().join('/') as NoTranslate);
2523
},
2624
};

0 commit comments

Comments
 (0)