1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

#5 added more details to logs on emos

This commit is contained in:
Fedor Katurov 2021-05-12 16:52:52 +07:00
parent 76c387cb81
commit df4b5d8dca

View file

@ -332,8 +332,11 @@ export class PostNewHandler extends VkEventHandler<Fields, Values> {
markup
);
const who = ctx.update?.callback_query?.from?.username || "someone";
const short = post.text.slice(0, 10);
logger.info(
`someone reacted with ${emo} to message ${id} on channel ${channel}`
`${who} reacted with ${emo} to message "${short}..." on channel ${channel}`
);
next();