Giter VIP home page Giter VIP logo

playlist-bot's Introduction

Playlist Bot for YouTube Music

Overview

This application allows you to control a playlist of songs on YouTube Music using Puppeteer and a Telegram bot. With this setup, you can easily manage and enjoy your favorite music without having to manually interact with YouTube Music.

Features

Feature Description
Search Music Search for a specific song to add to the playlist.
Add to Queue Add a song to the end of the playlist.
Add to Play Next Add a song to play next in the playlist.
Play Start playing the playlist.
Pause Pause the currently playing song.
Info Current Playing Get information about the currently playing song.
Next Skip to the next song in the playlist.
Get Lyrics Retrieve the lyrics of the currently playing song.
Vote for Next Allow users to vote for the next song in the playlist.
Subscribe & Unsubscribe Allow users to subscribe and unsubscribe from notifications.

Under Development Features

Feature Description
Setting Volume Adjust the volume of the music playback.
Shuffle Shuffle the order of songs in the playlist.

Prerequisites

Before running the application, ensure you have the following:

  • Node.js installed on your machine
  • Telegram bot token (create a bot on Telegram and obtain the token)
    • Important: Make sure your Telegram bot has the following settings enabled:
      • Inline Mode: Enable inline mode for the bot to process inline queries.
      • Inline Feedback: Allow users to provide feedback directly from inline results.
  • Google Chrome or Chromium browser installed (for Puppeteer)
  • Database: Currently configured with SQLite. You can change the database configuration in the prisma/schema.prisma and .env file.

Installation

Clone the repository:

git clone https://github.com/faytranevozter/playlist-bot.git

Install dependencies:

cd your-repository
pnpm install # or npm install

Create a .env file in the project root and add the following:

DATABASE_URL=your_database_url
TELEGRAM_BOT_TOKEN=your_telegram_bot_token

Run database migration:

pnpm migrate # or npm run migrate

Build the application:

pnpm build # or npm run build

Run the application:

pnpm start # or npm start

Usage

  1. Start a chat with your Telegram bot.
  2. Use the provided commands to control the playlist as described in the features section.
  3. To search music just mention the bot and keyword @playlistbot justin beiber
  4. Sit back, relax, and enjoy the music!

Contributing

Feel free to contribute to the project by opening issues or submitting pull requests. Any improvements or bug fixes are highly appreciated.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Thanks to the creators of Puppeteer, Telegraf, and Prisma for their amazing tools.

Contact

For any questions or support, you can reach out to [[email protected]].

playlist-bot's People

Contributors

dhoniaridho avatar faytranevozter avatar

Watchers

 avatar

Forkers

dhoniaridho

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.