Skip to content

Latest commit

 

History

History
237 lines (178 loc) · 8.55 KB

README.md

File metadata and controls

237 lines (178 loc) · 8.55 KB

Contributors Forks Stargazers Issues MIT License


Logo

Discord Media Player

DMP allows you to send Audio and Video from multiple sources to your Discord Server.
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Discord Media Player is a Discord Bot based on discord.js and discord.js-selfbot-v13. This bot uses the Discord-Video-Stream Library by dank074 to stream Video Files via FFMPEG to Discord directly.

(back to top)

Built With

Node Next TypeScript

(back to top)

Getting Started

This bot uses discord.js and discord.js-selfbot. Please be aware that this will likely be against the Discord ToS and may get your Selfbot Account banned! There are a few steps to setup before you can use this bot.

Prerequisites

For this bot to work, we recommend you to use the latest Node.JS Version instead of any LTS.

  • Latest Node.JS with NPM installed
  • Having FFMPEG installed in case you want to send Video. (ffmpeg and ffprobe command must work in either CMD or Bash)
  • You need to create a Discord Bot, store Client ID and Bot Token in config.js and invite the bot to your server. Discord Developer Portal
  • You need to create a Selfbot Token (for example by logging in to a Discord Acocunt from incognito browser and pasting following command in browser console) and store it in config.js
window.webpackChunkdiscord_app.push([
  [Math.random()],
  {},
  req => {
    if (!req.c) return;
    for (const m of Object.keys(req.c)
      .map(x => req.c[x].exports)
      .filter(x => x)) {
      if (m.default && m.default.getToken !== undefined) {
        return copy(m.default.getToken());
      }
      if (m.getToken !== undefined) {
        return copy(m.getToken());
      }
    }
  },
]);
console.log('%cWorked!', 'font-size: 50px');
console.log(`%cYou now have your token in the clipboard!`, 'font-size: 16px');

Installation

  1. Clone the repo
    git clone https://github.com/Abruccii/Discord-Media-Player.git
  2. Install NPM packages
    npm install
  3. Copy src/config.example.js to src/config.js and change the values
  4. Build the bot
    npm run build
  5. Start the bot
    npm run start

(back to top)

Usage

Run the bot directly with node or via pm2:

npm run yeet

Roadmap

  • Search local folder for Mediafiles (like your local Plex/Jellyfin Library, rClone Cloud Mounts, RAIDrive Mounts and so on)
  • Support Radio Streams
    • by URL
    • ny Name

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Top contributors:

contrib.rocks image

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

[email protected]

Project Link: https://github.com/Abruccii/Discord-Media-Player

(back to top)