update randomInt & randomString commands' titles and argsMode
This commit is contained in:
@@ -3,7 +3,9 @@ import {getRandomInt, getRangedRandomInt, logError, oldSendMessage} from "../uti
|
|||||||
import {Message} from "typescript-telegram-bot-api";
|
import {Message} from "typescript-telegram-bot-api";
|
||||||
|
|
||||||
export class RandomInt extends ChatCommand {
|
export class RandomInt extends ChatCommand {
|
||||||
title = "/randomInt [min] [max]";
|
argsMode = "optional" as const;
|
||||||
|
|
||||||
|
title = "/randomInt";
|
||||||
description = "Ranged random integer from parameters";
|
description = "Ranged random integer from parameters";
|
||||||
|
|
||||||
async execute(msg: Message) {
|
async execute(msg: Message) {
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ import {getRandomInt, logError, oldSendMessage} from "../util/utils";
|
|||||||
import {Message} from "typescript-telegram-bot-api";
|
import {Message} from "typescript-telegram-bot-api";
|
||||||
|
|
||||||
export class RandomString extends ChatCommand {
|
export class RandomString extends ChatCommand {
|
||||||
title = "/randomString [length]";
|
argsMode = "optional" as const;
|
||||||
|
|
||||||
|
title = "/randomString";
|
||||||
description = "literally random string (up to 4096 symbols)";
|
description = "literally random string (up to 4096 symbols)";
|
||||||
|
|
||||||
async execute(msg: Message) {
|
async execute(msg: Message) {
|
||||||
|
|||||||
Reference in New Issue
Block a user