Coder Social home page Coder Social logo

mauzao9 / jukebox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from foggymist/jukebox

0.0 2.0 0.0 57 KB

Integrates Slackbot websocket with YouTube api to allow queueing music on remote device via Slack chatroom, for your coworkers entertainment or suffering

License: GNU General Public License v3.0

JavaScript 97.47% HTML 2.53%

jukebox's Introduction

JukeBox

Integrates Slackbot websocket with YouTube api to allow queueing music on remote device via Slack chatroom, for your coworkers entertainment or suffering

What is it for?

It is for very specific case:

When you have a sound system with only one port plugget to only one source device, but you still want to allow multiple people to play the music through this sound system.

Plus, we can assume each and every person can use Slack.

How to use it?

  1. Copy files
  2. Change config.js data
  • Create new bot integration for your Slack team and obtain bot's api token/key
  • Create project in Google Developer Console, enable YouTuble api and obtain YouTube's api token/key
  1. Launch index.html in browser
  2. Plug in your sound system's input cable
  3. Invite bot to any channel on Slack
  4. Send help message to a channel shared with bot for more info

How it works?

JavaScript based bot opens Slack RTM websocket and gathers information about all activities in it's team.

Yes, it sees mostly everything that is sent in group channels or private messages it is in.

No, it does not send it anywhere and no data is stored outside browser's chache.

During connecting to Slack bot should also create few Youtube Iframe players in browser. After both things are done, bot starts to look for youtube links in chat messages, sends requests to Youtube api for more informations about them and queues them. First video from queue is supposed to be played in one of the Iframes (additional Iframe players are used to buffer videos before playing them for smoother transition).

jukebox's People

Contributors

mauzao9 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.