update randomInt & randomString commands' titles and argsMode

This commit is contained in:
2026-01-22 20:06:28 +03:00
parent b85ea1a135
commit 637537161d
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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) {