2021-09-30 09:57:19 +01:00
2020-05-21 04:54:09 +01:00
2020-11-28 20:40:33 +01:00
2020-11-28 20:40:33 +01:00
2020-04-28 01:38:41 +01:00
2020-11-28 20:38:37 +01:00
2020-05-14 10:50:37 +01:00
2020-07-31 18:38:24 +01:00

Discord Bot

A bot that plays audio tracks from facebook, youtube and podcast websites

Development

For development on Windows you need the following node modules installed globally:

  • node-gyp
npm install -g node-gyp
  • node-pre-gyp
npm install -g node-pre-gyp
  • patch-package
npm install -g patch-package
  • windows-build-tools
npm install --global --production --vs2015 --add-python-to-path windows-build-tools

Deployment to Heroku

  1. Create an app in Discord Developers Portal

  2. Fork this repository

  3. Create an app on Heroku

  4. Connect the app with your forked repository



  5. Add these buildpacks: Ffmpeg buildpack and Puppeteer buildpack



  6. Configure the environment variables (YouTube API, Bot Token, Owner Id)



    1. Owner Id is your Discord account id (get it here)
    2. Bot Token is the token of the bot in your discord application
    3. YouTube API is the key that enables the bot to get YouTube videos, to get it create a project in Google Developers Console then generate the key
  7. Deploy

  8. Get the bot invite link with its permissions

    1. Get the bot permissions



    2. Get the invite link to your server



Check this video for a detailed guide

S
Description
A discord bot that plays audio tracks from facebook, youtube and podcast websites
Readme MIT 652 KiB
Languages
JavaScript 100%