2018-11-26 20:04:53 +01:00
|
|
|
const Telegraf = require("telegraf");
|
|
|
|
const Sequelize = require("sequelize");
|
|
|
|
|
2018-11-27 16:54:06 +01:00
|
|
|
const main = require("./bot/index");
|
|
|
|
const { bot: config } = require("./config");
|
2018-11-27 16:35:55 +01:00
|
|
|
const db = require("./data")(Sequelize, config);
|
2018-11-26 20:04:53 +01:00
|
|
|
const bot = new Telegraf(config.botApiKey);
|
2018-11-27 16:35:55 +01:00
|
|
|
|
|
|
|
Promise.all([ bot, db, config ]).then(main);
|