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

#6 added joiin-leave handler

This commit is contained in:
Fedor Katurov 2021-05-13 10:26:37 +07:00
parent 4f321373f9
commit 37b0bf13be
7 changed files with 86 additions and 3 deletions

9
templates/group_join.md Normal file
View file

@ -0,0 +1,9 @@
---
---
{{!--
use handlebars template here
available variables are: user, group, text, isJoined, isLeave, count
(see JoinLeaveHandler)
--}}
😃 [{{user.first_name}} {{user.last_name}}](https://vk.com/id{{user.id}}) {{#ifEq user.sex 1}}присоединилась{{else}}присоединился{{/ifEq}}
к группе. Участники: {{count}}.

9
templates/group_leave.md Normal file
View file

@ -0,0 +1,9 @@
---
---
{{!--
use handlebars template here
available variables are: user, group, text, isJoined, isLeave, count
(see JoinLeaveHandler)
--}}
😡 [{{user.first_name}} {{user.last_name}}](https://vk.com/id{{user.id}}) {{#ifEq user.sex 1}}свалила{{else}}свалил{{/ifEq}}
из группы. Участники: {{count}}.