Git Product home page Git Product logo

slack-to-youtube's Introduction

Slack to YouTube

A Slack bot that reads YouTube links posted in a channel and adds them to a YouTube playlist.

This is an updated version adapted from YouSlackBot.

Configuration

Create a Fly app and set the app name in fly.toml.

Create a Slack bot and store the token as the SLACK_TOKEN secret:

flyctl secrets set "SLACK_TOKEN=xoxb-12345..."

Create a Google project and add the YouTube Data API v3.

Create an OAuth consent screen. If you want others outside your organisation to use it, you'll need to publish the app.

Create an OAuth client ID (Web application type) and set the redirect URI to https://your-slack-app.fly.dev.

Download the credentials and set them as the YOUTUBE_CREDENTIALS secret:

flyctl secrets set "YOUTUBE_CREDENTIALS=$(< credentials.json)"

Store the YouTube playlist ID as the YOUTUBE_PLAYLIST secret:

flyctl secrets set "YOUTUBE_PLAYLIST=..."

Running the bot

Deploy the app with flyctl deploy and visit https://your-slack-app.fly.dev to authorise the app with Google. You can then invite the Slack bot to any channels.

slack-to-youtube's People

Contributors

cmbuckley avatar

Watchers

Matthew Moore avatar Kostas Georgiou 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.