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:
parent
f3a746efe8
commit
c0588acd26
15 changed files with 476 additions and 11 deletions
|
@ -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: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue