Skip to content

Commit

Permalink
- Reldens - v4.0.0 - Include bots counter.
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-pastorini committed Oct 22, 2024
1 parent 7009c2c commit 0d42f51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion theme/plugins/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { ChatConst } = require('reldens/lib/chat/constants');
const { GameClient } = require('reldens/lib/game/client/game-client');
const { GameConst } = require('reldens/lib/game/constants');
const { sc } = require('@reldens/utils');
let botsCounter = 1;

async function main (options)
{
Expand All @@ -19,7 +20,8 @@ async function main (options)
let movementIntervalMs = Number(process.env.withMovement || 0);
let randomGuestName = 'guest-bot-'+sc.randomChars(12);

console.log('Running bot "'+randomGuestName+'" with options.', {movementIntervalMs, chatIntervalMs});
console.log('Running bot #'+botsCounter+' - User "'+randomGuestName+'".', {movementIntervalMs, chatIntervalMs});
botsCounter++;

let userData = {
isGuest: true,
Expand Down

0 comments on commit 0d42f51

Please sign in to comment.