gdiab / Mookie-Turntable-Bot

A Turntable.fm bot for the inALLcaps.com room [MOOKIE]
http://turntable.fm/inallcapscom
MIT License
2 stars 1 forks source link

Mookie Turntable Bot

A customizable Turntable.fm bot.

This is still early in development. Many of the features are taken from thr Sparkle bot for/catered to the Indie/Classic Alt room.

Installation

To run the bot, you'll need the following installed:

Run

Finally, run your bot using the following command in a console/terminal/command prompt:

node mookie.js

Use this command to run your bot in the background:

nohup node mookie.js &

A keepalive shell script is included to allow the bot to run permanently. (Note: if you use this, do watch the nohup.out file to ensure the bot is continuing to work properly)

nohup ./mookie.sh &

Features

The bot can:

Song Awesoming

The bot can awesome songs based on one of four modes. These modes can be set in the config.js file prior to running the bot.

Room enforcement

The bot can enforce a variety of room rules, including:

Database

The bot uses a mysql database to log/retrieve some information. The bot can log song data, user information (id/name), and keep a chatlog. This project includes several .sql files (currently, these files contain a list of cat facts and holidays). If you enable the useDatabase flag, be sure to create new tables in your bot's database using these .sql files.

Planned

Commands

The bot will respond to these commands in chat in a Turntable.fm room.

User commands

Room enforcement commands

User database queries

Commands with parameters

Admin Commands

These commands can only be performed by admins of the bot.

TCP Commands

These commands can be performed via TCP access to the bot.

Help

If you have a nontrivial question (please don't ask me how to install node.js or the MySQL community server, for example), feel free to contact me. I'm usually hanging out in the Indie/Classic Alt 1+Done room on Turntable.