Turntable-API icon indicating copy to clipboard operation
Turntable-API copied to clipboard

Batch Process?

Open mnafricano opened this issue 12 years ago • 5 comments

I felt like I saw this issue in here before but I looked through the list of issues just now, and I didn't catch one that said batch process or multiple files.

What I was wondering was, how do I use one JavaScript file, like this:

// Initial Setup
var Bot = require('ttapi');
var AUTH = 'xxxxxxxxxxxxxxxxxxxxxxxx';
var USERID = '518dd6d1aaa5cd34f8e337d1';
var ROOMID = '517e6f80eb35c118d013447c';
var bot = new Bot(AUTH, USERID, ROOMID);

/* Something right here that would run the other files in the command prompt. */

mnafricano avatar Jun 02 '13 00:06 mnafricano

You make javascript files related to the bot features you want it to load in the set-up phase and then below this note, /* Something right here that would run the other files in the command prompt. */, you put the names of the javascript files.

ghost avatar Jun 02 '13 12:06 ghost

Are you trying to make a bot army? What are the other files you are trying to run?

technobly avatar Jun 06 '13 17:06 technobly

@mnafricano you probably shouldn't post your AUTH... I just hijacked your bot with my message bot and left a message for Clinr that your bot was hijacked... heh... fun.

Wow how sad is my life... :( sighs

technobly avatar Jun 06 '13 18:06 technobly

I'm dumb as hell for doing this again. I gotta wake the hell up before I open an issue or issue a pull request.

mnafricano avatar Jun 12 '13 21:06 mnafricano

Also, no, I have a bot with the account name Song Stats: and I use "/me # :+1: # :-1: # :heart:" to show the song stats after a song plays. The song stats bot doesn't have any features other than that but the Storm Trooper bot collaborates with the Song Stats: as sort of a 'team' so I just wanted to be able to run them at the same time. @DubbyTT

Thanks in advance!

mnafricano avatar Jun 12 '13 21:06 mnafricano