Install Dependencies
1.Navigate to the core directory and run:
npm install
- Build the core:
npm run build
- Navigate to the cli directory and run
npm install
- Create a config file in JSON format (e.g., configs/meet-bot.json) like this:
{
"platform": "google_meet",
"meetingUrl": "https://meet.google.com/xxxx",
"botName": "TestBot",
"automaticLeave": {
"waitingRoomTimeout": 300000,
"noOneJoinedTimeout": 300000,
"everyoneLeftTimeout": 300000
}
}
- Run the CLI with:
npm run cli <config path>
example
npm run cli configs/meet-bot.json
Note: This is a temporary setup and I will improve it later.
Before running the bot, you need to build the Docker image. Navigate to the core
directory (where the Dockerfile is located) and run:
docker build -t vexa-bot .
This command will create a Docker image named vexa-bot.
Once the image is built, you can start the bot using Docker. Pass the bot configuration as an environment variable:
docker run -e BOT_CONFIG='{"platform": "google_meet", "meetingUrl": "https://meet.google.com/xcb-tssj-qjc", "botName": "Vexa", "token": "123", "connectionId": "", "automaticLeave": {"waitingRoomTimeout": 300000, "noOneJoinedTimeout": 300000, "everyoneLeftTimeout": 300000}}' vexa-bot
-
Ensure the BOT_CONFIG JSON is properly formatted and wrapped in single quotes (') to avoid issues.
-
The bot will launch inside the Docker container and join the specified meeting.
-
You can replace the values in BOT_CONFIG to customize the bot's behavior.