shitton
This commit is contained in:
@@ -3,6 +3,9 @@ import {Message} from "typescript-telegram-bot-api";
|
||||
import {logError, oldReplyToMessage, randomValue} from "../util/utils";
|
||||
import {prepareTelegramMarkdownV2} from "../util/markdown-v2-renderer";
|
||||
import {Environment} from "../common/environment";
|
||||
import {appLogger} from "../logging/logger";
|
||||
|
||||
const logger = appLogger.child("command:choice");
|
||||
|
||||
export class Choice extends Command {
|
||||
command = "choice";
|
||||
@@ -12,7 +15,7 @@ export class Choice extends Command {
|
||||
description = Environment.commandDescriptions.choice;
|
||||
|
||||
async execute(msg: Message, match?: RegExpExecArray): Promise<void> {
|
||||
console.log("match", match);
|
||||
logger.debug("execute", {chatId: msg.chat?.id, messageId: msg.message_id, match});
|
||||
|
||||
const payload = match?.[3] || "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user