UNPKG

prioritizer

Version:

Method to prioritize a list with persistence

13 lines (9 loc) 337 B
require("dotenv").config() const token = process.env.TELEGRAM_BOT_TOKEN; const {TestRepository} = require('persistent-programming') const PrioritizerTelegramBot = require('./domain/PrioritizerTelegramBot') async function init(){ let bot = await PrioritizerTelegramBot.createNew(TestRepository(), token) await bot.start() } init()