Telegram Bot commited on
Commit
f37bbfe
·
1 Parent(s): a42fe23

fix: call initializeBot and syncAirtable at startup

Browse files
Files changed (1) hide show
  1. index.js +6 -1
index.js CHANGED
@@ -1154,4 +1154,9 @@ app.get('/', (req, res) => {
1154
  `);
1155
  }
1156
  });
1157
- app.listen(process.env.PORT || 7860, '0.0.0.0', () => console.log('Облачный сервер запущен на 7860'));
 
 
 
 
 
 
1154
  `);
1155
  }
1156
  });
1157
+ app.listen(process.env.PORT || 7860, '0.0.0.0', () => {
1158
+ console.log('Облачный сервер запущен на 7860');
1159
+ // Start bot logic
1160
+ syncAirtable();
1161
+ initializeBot();
1162
+ });