diff --git a/botmon.js b/botmon.js index 4035428..c6510df 100644 --- a/botmon.js +++ b/botmon.js @@ -6,7 +6,7 @@ let botClient; app.use(express.json({ limit: '10mb' })); -const { session_name, browser_args } = require('./config.js'); +const { session_name, browser_args, port } = require('./config.js'); const { send_message, send_image, get_all_chats, base64ToFile } = require('./utils.js'); venom diff --git a/config.js b/config.js index 493f72e..deb0bbb 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,5 @@ const session_name = process.env.session_name; const browser_args = process.env.browser_args; +const port = 5000 -// const session_name = 'monitoringSession'; -// const browser_args = '--user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'; - -module.exports = { session_name, browser_args } \ No newline at end of file +module.exports = { session_name, port, browser_args } \ No newline at end of file