bot server implementation
This commit is contained in:
14
server.js
14
server.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user