- Profile

- Bot Telegram
- fixed Chip multiselect
This commit is contained in:
Paolo Arena
2020-01-03 01:52:49 +01:00
parent 892eccb4fc
commit f359f8f723
13 changed files with 725 additions and 67 deletions

View File

@@ -18,7 +18,6 @@ const sendemail = require('./sendemail');
const cron = require('node-cron');
i18n = require("i18n");
if ((process.env.NODE_ENV === 'production') || (process.env.NODE_ENV === 'test')) {
@@ -128,6 +127,7 @@ app.use('/admin', admin_router);
// development error handler
// will print stacktrace
if (app.get('env') === 'development') {
app.use(function (err, req, res, next) {
console.log('Error: ', err.message);
// console.trace();
@@ -139,6 +139,9 @@ if (app.get('env') === 'development') {
});
}
require('./telegram/telegrambot');
// *** DB CONNECTIONS ***
// mysql_func.mySqlConn_Shen.connect((err) => {
// if (!err)
@@ -170,6 +173,12 @@ if (process.env.PROD !== 1) {
// testmsgwebpush();
// sendemail.testemail('2', 'it');
// let crypt = tools.cryptdata('');
// let decrypt = tools.decryptdata(crypt);
// console.log('crypted:', crypt);
// console.log('decrypted:', decrypt);
mycron();
}