We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7048f5 commit 09a98a0Copy full SHA for 09a98a0
src/ps/commands/sample.ts
@@ -6,10 +6,10 @@ import type { PSCommand } from '@/types/chat';
6
export const command: PSCommand = {
7
name: 'sample',
8
help: 'Generates random numbers.',
9
- syntax: 'CMD [max=10] x [count=5]',
+ syntax: 'CMD [max=9] x [count=5]',
10
aliases: ['random'],
11
async run({ arg, broadcast, originalCommand }) {
12
- const [max, count] = parsePoint(arg) ?? [10, 5];
+ const [max, count] = parsePoint(arg) ?? [9, 5];
13
const nums =
14
originalCommand[0] === 'random'
15
? Array.from({ length: count }, () => sample(max) + 1)
0 commit comments