mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-26 07:26:41 +07:00
added wtf command
This commit is contained in:
parent
0839684fff
commit
b28c34878b
5 changed files with 99 additions and 0 deletions
|
@ -5,6 +5,7 @@ import { VkService } from "./service/vk";
|
|||
import { TelegramApi } from "./api/telegram";
|
||||
import { HttpApi } from "./api/http";
|
||||
import { PostgresDB } from "./service/db/postgres";
|
||||
import { PgTransport } from "./service/db/postgres/loggerTransport";
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
|
@ -13,6 +14,8 @@ async function main() {
|
|||
const db = new PostgresDB(config.postgres, config.logger);
|
||||
await db.connect();
|
||||
|
||||
logger.add(new PgTransport(db, { level: "warn" }));
|
||||
|
||||
const telegram = new TelegramService(config.telegram);
|
||||
const vkService = new VkService(config.vk, telegram, config.templates, db);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue