diff --git a/bots/translateBot/config/connect.js b/bots/translateBot/config/connect.js index a677d6a1..93c7d496 100644 --- a/bots/translateBot/config/connect.js +++ b/bots/translateBot/config/connect.js @@ -100,7 +100,7 @@ export const connectToRooms = async (xmpp, jid, connectData) => { console.log('rooms list ', rooms) for (const room of rooms) { - connectRoom(xmpp, jid, process.env.DEFAULT_ROOM, connectData, statusSendWelcomeMessage); + connectRoom(xmpp, jid, room, connectData, statusSendWelcomeMessage); } } else { connectRoom(xmpp, jid, process.env.DEFAULT_ROOM, connectData, statusSendWelcomeMessage);