alaingilbert / Turntable-API

Allows you to create bots for turntable.fm
http://alaingilbert.github.com/Turntable-API/
MIT License
318 stars 97 forks source link

Batch Process? #214

Open mnafricano opened 11 years ago

mnafricano commented 11 years ago

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. */
ghost commented 11 years ago

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.

technobly commented 11 years ago

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

technobly commented 11 years ago

@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

mnafricano commented 11 years ago

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 commented 11 years ago

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!