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:
parent
76c387cb81
commit
df4b5d8dca
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue