Git Product home page Git Product logo

playlist-bot's Introduction

Playlist-Bot

Build Instructions

Follow step 1 to generate a YOUR_CLIENT_SECRET_FILE.json https://developers.google.com/youtube/v3/quickstart/python

Follow the install instructions for discord.py https://discordpy.readthedocs.io/en/latest/intro.html

Create the discord bot by going to https://discordapp.com/ Developers - Developer Portal. click on new aplication and name the bot. Go to the bot tab and click on add bot. click on copy under Token in the bot tab and paste it on the last line in main.py where it says 'INSERT CLIENT ID HERE'. Invite the bot to your server by going to the OAuth2 tab and clicking on the bot checkmark. In the Bot Permisions section check Send Messages, Send TTS Messages, Manage Messages, and Read Message History. Copy the link right above and past it into a browser. Select which server you want the bot in. Go back to main.py and where it says INSERT PLAYLIST ID HERE(on lines 27 and 133) put the playlist id associated with the youtube account that you want to change. Playlist ID can be found in the youtube url of the playlist after ?list= Run the main.py file to activate the bot. The youtube api will give a link to authorize the bot. Select the youtube account that you want to change the playlist for.

use !updatePlaylist to add all the songs in the channel to your playlist use !playlist to get a link to your playlist

References

https://discordpy.readthedocs.io/en/latest/api.html#

https://developers.google.com/youtube/v3/docs/playlistItems/insert?apix=true

playlist-bot's People

Contributors

neighohmee avatar

Watchers

 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.