Skip to content

Commit 09a98a0

Browse files
committed
chore: Sample default max should be 9
1 parent f7048f5 commit 09a98a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ps/commands/sample.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import type { PSCommand } from '@/types/chat';
66
export const command: PSCommand = {
77
name: 'sample',
88
help: 'Generates random numbers.',
9-
syntax: 'CMD [max=10] x [count=5]',
9+
syntax: 'CMD [max=9] x [count=5]',
1010
aliases: ['random'],
1111
async run({ arg, broadcast, originalCommand }) {
12-
const [max, count] = parsePoint(arg) ?? [10, 5];
12+
const [max, count] = parsePoint(arg) ?? [9, 5];
1313
const nums =
1414
originalCommand[0] === 'random'
1515
? Array.from({ length: count }, () => sample(max) + 1)

0 commit comments

Comments
 (0)