Files
tg-chat-bot/src/commands/test.ts
T
2026-02-06 12:05:20 +03:00

14 lines
553 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import {Command} from "../base/command";
import {Message} from "typescript-telegram-bot-api";
import {logError, oldReplyToMessage, randomValue} from "../util/utils";
import {Environment} from "../common/environment";
export class Test extends Command {
regexp = /^(test|тест|еуые|ntcn|инноке(нтий|ш|нтич))$/i;
title = "тест";
description = "System functionality check";
async execute(msg: Message) {
await oldReplyToMessage(msg, randomValue(Environment.ANSWERS.test) || "а").catch(logError);
}
}