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, 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) {