RedyyPT Posted August 1, 2018 Report Share Posted August 1, 2018 How do I get multiple custom games at the same time? for example, I put in the bot a custom game to say "hello" and after 5 seconds it changes to another custom game How can I do it?Goal:I have a custom game on my bot to say "do! Commands to see all commands" and wanted to past 5 seconds to switch to another Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 1, 2018 Report Share Posted August 1, 2018 Set up a timer, and call gamesPlayed with the next string in the rotation each time it fires. RedyyPT 1 Quote Link to comment Share on other sites More sharing options...
RedyyPT Posted August 2, 2018 Author Report Share Posted August 2, 2018 how i can do this? XD Quote Link to comment Share on other sites More sharing options...
RedyyPT Posted August 2, 2018 Author Report Share Posted August 2, 2018 How do I get the timer here? client.logOn(logOnOptions); client.on('loggedOn', () => {console.log('login feito com sucesso');client.setPersona(SteamUser.Steam.EPersonaState.Online);client.gamesPlayed(["Digita !comandos para veres todos os comandos",10,730,440,570]);}); Quote Link to comment Share on other sites More sharing options...
SpiTik Posted August 2, 2018 Report Share Posted August 2, 2018 var random = ['non steamgame1','non steamgame2','non steamgame3','non steamgame4',]; client.setPersona(SteamUser.Steam.EPersonaState.Online), sleep.sleep(2),setInterval(function random1() { var randomnumber = Math.floor(Math.random() * (random.length)); client.gamesPlayed([random[randomnumber], 668630, 20710, 200170, 504370, 431960, 207140, 368730, 484830, 356890, 262450, 210770, 730, 753, 466240, 602890, 526740, 238320, 610360, 433850, 428430, 361420, 359550, 242760, 12100, 12110, 581510, 431240, 422870, 716110, 718370, 365670, 479130, 448470, 533300, 485310,]);}, 180000); //3min'non steamgame1', 'non steamgame1', RedyyPT 1 Quote Link to comment Share on other sites More sharing options...
RedyyPT Posted August 2, 2018 Author Report Share Posted August 2, 2018 Whats wrong? });^ SyntaxError: Unexpected token } at new Script (vm.js:74:7) at createScript (vm.js:246:10) at Object.runInThisContext (vm.js:298:10) at Module._compile (internal/modules/cjs/loader.js:657:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Function.Module.runMain (internal/modules/cjs/loader.js:742:12) at startup (internal/bootstrap/node.js:266:19) Config bot: var random = ['Digita !comandos para veres todos os comandos', 'Queres salas permanentes e gratis? Digita !ts', 'Digita !vip para veres os preços dos vips', 'Ajuda a cheadcm a chegar aos 4k membros , digita !grupo', ]; client.setPersona(SteamUser.Steam.EPersonaState.Online), sleep.sleep(2),setInterval(function random1() { var randomnumber = Math.floor(Math.random() * (random.length)); client.gamesPlayed([random[randomnumber], 668630, 20710, 200170, 504370, 431960, 207140, 368730, 484830, 356890, 262450, 210770, 730, 753, 466240, 602890, 526740, 238320, 610360, 433850, 428430, 361420, 359550, 242760, 12100, 12110, 581510, 431240, 422870, 716110, 718370, 365670, 479130, 448470, 533300, 485310,]);}, 180000); //3min'Digita !comandos para veres todos os comandos', 'Queres salas permanentes e gratis? Digita !ts', }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.