publicstring commited on
Commit
8b9617e
·
verified ·
1 Parent(s): cea694d

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +1 -1
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 = `Bot ${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,
 
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,