Skip to content

Instantly share code, notes, and snippets.

@StephanieSunshine
Created August 23, 2013 02:55
Show Gist options
  • Save StephanieSunshine/6315101 to your computer and use it in GitHub Desktop.
Save StephanieSunshine/6315101 to your computer and use it in GitHub Desktop.
# Main
# Start Eventmachine main loop
bot = Neurobot.new
Turntabler.interactive
Turntabler.run do
# Start the client handle
bot.client = Turntabler::Client.new('', '', :room => bot.roomid, :user_id => USERID, :auth => bot.authid, :reconnect => true, :reconnect_wait => 15)
# Pull in all the information and spit out the startup
bot.rehash(nil)
# Sync the user database with the current room settings
bot.syncUserList
# Start Auto dj watcher, alone dj watcher, and blacklist watcher
bot.backgroundLoopInit
bot.trapEvents
end # End Turntabler.run do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment