Skip to content

Running Multiple Bots with a Batch File

alaingilbert edited this page Oct 24, 2012 · 5 revisions

If you have more than 1 bot running in different rooms and tired of node-ing every single bot one by one, this will help you. This works for Windows as far that I know. I'm not sure that a lot people do this, but for the ones who don't know, this will greatly help you.

MADE BY KATAZUI (100%), TWITTER -> KATAZUI, TURNTABLE ROOM -> http://tt.fm/katazuis_radio2

Give Credit, thanks! Thanks to alaingilbert too!

edit: if set cmd /k botname.bat does not work for you try start cmd /k botname.bat instead.


Step 1

A.) First thing first, open Notepad.

B.) In Notepad, put this down. Replace "bot.js" with your bot.

node bot.js

C.) Next, save this as "botname.bat" in the folder of your bot.

D.) Repeat A-C with all other bots you want to run.

E.) Test it! Make sure all your .bat files are working! Also, importantly make sure your bot is running too!

Step 2

A.) Next, you want to open Notepad again.

B.) Copy this down. http://pastebin.com/J7r28jDg

C.) Edit the cd C:\pathtobot\bot to your path to bot.

D.) Edit the botname.bat to your batch file you made.

E.) Edit the rest for how many bots you have.

E 1.) If you have more than 3 bots. Just copy and paste lines 8-10, and repeat.

F.) Once your done adding all your bots. Save this Notepad as "RunAllBots.bat".

G.) And it should work! It's pretty easy!


Clone this wiki locally