GithubHelp home page GithubHelp logo

raymozou / maesh-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michvong/maesh-bot

0.0 0.0 0.0 17 KB

A Discord application where users can convert playlists from YouTube to Spotify playlists.

JavaScript 100.00%

maesh-bot's Introduction

MaeshBot ๐ŸŽถ

This application was created for usage on Discord. The user inputs a playlist extracted from YouTube and the application converts the songs to a Spotify playlist.

Getting Started

These instructions will help you get a copy of the project and set it up for testing and development purposes on your local machines. See notes for extra information.

Development Setup

Required: Node.js

  1. Clone the repository:
    git clone https://github.com/michvong/maesh-bot.git
    
  2. Install dependencies:
    npm install
    
  3. Create a .env file containing the following:
    YOUTUBE_TOKEN=[your token here]
    DISCORD_TOKEN=[your token here]
    SPOTIFY_ACCESS_TOKEN=[your token here]
    SPOTIFY_CLIENT_ID=[your token here]
    SPOTIFY_CLIENT_SECRET=[your token here]
    SPOTIFY_REDIRECT_URI=[your token here]
    

Usage

  1. Run the application :
    node index.js
    
  2. On Discord, type in:
    $convert <link of YouTube playlist>
    or
    $search <link of Spotify playlist>
    

Input:

Image of input

Output:

Image of output

Notes

  • The YouTube playlist must be set as public in order to work.

  • The application will only support up to 50 songs.

  • The application has a bug caused by an Internal Server Error (Response Status Code 500). The bug will cause some songs from the YouTube playlist to not get converted into the Spotify playlist. This bug is random and not consistently reproducable. There is no information on how to fix this as of yet.

  • YouTube songs also may not be found on Spotify due to the difference in music libraries or titles.

  • Must provide your own YouTube API Key, Spotify Client ID, Spotify Client Secret, and Spotify API Access Code for this bot to function.

Authors

Acknowledgments

We would like to thank the team at nwHacks for supporting us!

maesh-bot's People

Contributors

michvong avatar jordanfun 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.