From 637537161d6b9e7cf3756795bdd26d6e26d03779 Mon Sep 17 00:00:00 2001 From: Danil Nikolaev Date: Thu, 22 Jan 2026 20:06:28 +0300 Subject: [PATCH] update randomInt & randomString commands' titles and argsMode --- src/commands/random-int.ts | 4 +++- src/commands/random-string.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/random-int.ts b/src/commands/random-int.ts index becd58d..cf18ab2 100644 --- a/src/commands/random-int.ts +++ b/src/commands/random-int.ts @@ -3,7 +3,9 @@ import {getRandomInt, getRangedRandomInt, logError, oldSendMessage} from "../uti import {Message} from "typescript-telegram-bot-api"; export class RandomInt extends ChatCommand { - title = "/randomInt [min] [max]"; + argsMode = "optional" as const; + + title = "/randomInt"; description = "Ranged random integer from parameters"; async execute(msg: Message) { diff --git a/src/commands/random-string.ts b/src/commands/random-string.ts index aa75b98..fc44c85 100644 --- a/src/commands/random-string.ts +++ b/src/commands/random-string.ts @@ -3,7 +3,9 @@ import {getRandomInt, logError, oldSendMessage} from "../util/utils"; import {Message} from "typescript-telegram-bot-api"; export class RandomString extends ChatCommand { - title = "/randomString [length]"; + argsMode = "optional" as const; + + title = "/randomString"; description = "literally random string (up to 4096 symbols)"; async execute(msg: Message) {