- Profile
- Bot Telegram - fixed Chip multiselect
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user