bot server implementation

This commit is contained in:
Dobromir Popov
2024-02-28 15:51:21 +02:00
parent 349c2ca24c
commit 1643e1125b
6 changed files with 156 additions and 9 deletions

View File

@@ -614,6 +614,8 @@ const generateWordFile = async (outputFilename, data, templateSrc) => {
// #################### statistics ####################
const telegramBot = require('./src/telegram');
async function Stat() {
var date = new Date();
@@ -641,7 +643,7 @@ async function Stat() {
}
telegramBot.Initialize();
console.log(
"found " + previousShifts.length + " shifts for previous 2 months"
@@ -649,6 +651,16 @@ async function Stat() {
}
Stat();
exports.baseUrlGlobal = baseUrlGlobal;
exports.default = app;