turntable.fm bot
This is my turntable.fm bot ultrabot the funk. He DJs when I don't have anyone else in my room to spin with, he likes everything I play, and he spouts deep thoughts.
You're welcome to use this script or modify it to create your own bot.
First you will need to clone a copy of the ultrabot repository:
git clone https://github.com/mzabriskie/ultrabot.git
From the ultrabot directory install the Node dependencies:
cd ultrabot && npm install
Run this bookmarklet to get the AUTH
, USERID
and ROOMID
.
Next you will need to create a bots.js
config file:
vim bots.js
var Bot = require('ttapi'),
ROOM_ID = '0123456789abcdefghijklmn'; // ID of whatever room you want
// Add as many bots as you want, but there needs to be at least one
// The first bot listed will be the moderator and will DJ when there aren't enough DJs in the room
module.exports = [
new Bot('0123456789abcdefghijklmn', '0123456789abcdefghijklmn', ROOM_ID),
new Bot('0123456789abcdefghijklmn', '0123456789abcdefghijklmn', ROOM_ID),
new Bot('0123456789abcdefghijklmn', '0123456789abcdefghijklmn', ROOM_ID)
];
Start ultrabot server:
npm start
Launch turntable.fm from your browser and visit the room that you specified in your bots.js
configuration.
Released under the MIT license.