Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -60,7 +60,7 @@ function populateBots(room, guaranteeBot = false) {
|
|
| 60 |
for (let i = 0; i < numBots; i++) {
|
| 61 |
const botId = `bot-${uuidv4()}`;
|
| 62 |
const template = BOT_TEMPLATES[Math.floor(Math.random() * BOT_TEMPLATES.length)];
|
| 63 |
-
const randomName = `
|
| 64 |
room.players[botId] = {
|
| 65 |
id: botId, name: randomName, roomId: room.id,
|
| 66 |
state: JSON.parse(JSON.stringify(template)), ready: true,
|
|
|
|
| 60 |
for (let i = 0; i < numBots; i++) {
|
| 61 |
const botId = `bot-${uuidv4()}`;
|
| 62 |
const template = BOT_TEMPLATES[Math.floor(Math.random() * BOT_TEMPLATES.length)];
|
| 63 |
+
const randomName = `${BOT_NAMES[Math.floor(Math.random() * BOT_NAMES.length)]}`;
|
| 64 |
room.players[botId] = {
|
| 65 |
id: botId, name: randomName, roomId: room.id,
|
| 66 |
state: JSON.parse(JSON.stringify(template)), ready: true,
|