1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-25 06:56:40 +07:00

#4 added simple DB layer

This commit is contained in:
Fedor Katurov 2021-05-04 11:38:22 +07:00
parent f3a746efe8
commit c0588acd26
15 changed files with 476 additions and 11 deletions

View file

@ -3,6 +3,7 @@ import { ConfigGroup, GroupInstance, VkEvent } from "../types";
import { VkService } from "../index";
import { TelegramService } from "../../telegram";
import { Template } from "../../template";
import { Storage } from "../../db";
export class VkEventHandler<
F extends Record<string, any> = any,
@ -15,7 +16,8 @@ export class VkEventHandler<
protected instance: GroupInstance,
protected vk: VkService,
protected telegram: TelegramService,
protected template: Template<F, V>
protected template: Template<F, V>,
protected db: Storage
) {}
public execute: (