fix warnings on start
This commit is contained in:
parent
5b7d39945e
commit
5acefe8346
7
app.js
7
app.js
@ -22,8 +22,9 @@ app.get('/', basicAuth(users), (req, res) => {
|
||||
return res.send('Received a GET HTTP method');
|
||||
});
|
||||
|
||||
app.listen(process.env.PORT, () =>
|
||||
console.log(`Example app listening on port ${process.env.PORT}!`),
|
||||
const port = process.env.PORT || 3000;
|
||||
app.listen(port, () =>
|
||||
console.log(`Example app listening on port ${port}!`),
|
||||
);
|
||||
|
||||
const token = process.env.BOT_TOKEN;
|
||||
@ -64,7 +65,7 @@ let chat = utils.loadChat();
|
||||
let jointArray = navigation.concat(chat);
|
||||
|
||||
|
||||
const bot = new TelegramBot(token, { polling: true });
|
||||
const bot = new TelegramBot(token, { polling: true, cancelThrottledRequest: true });
|
||||
|
||||
bot.on('new_chat_members', (msg) => {
|
||||
bot_welcome.welcomeMessage(bot, msg, logger)
|
||||
|
Loading…
x
Reference in New Issue
Block a user