We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41ac508 commit 7ac1b9cCopy full SHA for 7ac1b9c
1 file changed
src/bot/index.ts
@@ -28,13 +28,9 @@ export class CopBot {
28
}
29
async start() {
30
try {
31
- // Ensure the bot is listening on the correct port (Render provides the PORT environment variable)
32
- const port = Config.port;
33
-
34
- // Use long-polling
+ const port = Config.port || 3000;
35
const server = http.createServer(webhookCallback(this._bot, 'http'));
36
37
- server.listen(port, () => {
+ server.listen(port, '0.0.0.0', () => {
38
console.log(`Bot started on port ${port}`);
39
});
40
await this._bot.start({
0 commit comments