Skip to content

Commit ae5939d

Browse files
committed
Use long polling in development mode
1 parent 9abeeb3 commit ae5939d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,8 @@ app.get('/setup', async (req, res) => {
9999
})
100100

101101
app.listen(port, async () => console.log('listening to port ' + port));
102-
// bot.start().then(() => console.log('Bot launched!'));
102+
103+
// if NODE_ENV is development, start polling
104+
if (process.env.NODE_ENV === 'development') {
105+
bot.start();
106+
}

0 commit comments

Comments
 (0)