Skip to content

Staler2019/Discord-YT-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Youtube Player

Setup

Join Bot at link

established on Heroku with free dynos(550 free hours/month and + 450 by adding credit card)

!help

A YT Player Bot(support playlist now)

Music:
  join    Joins a voice channel.
  leave   Clears the queue and leaves the voice channel.
  loop    Loops the currently playing song.
  now     Displays the currently playing song.
  pause   Pauses the currently playing song.
  play    Plays a song.
  queue   Shows the player's queue.
  remove  Removes a song from the queue at a given index. (arg: index of the ...
  resume  Resumes a currently paused song.
  search  Searches youtube.
  shuffle Shuffles the queue.
  skip    Vote to skip a song. The requester can automatically skip.
  stop    Stops playing song and clears the queue.
  summon  Summons the bot to a voice channel.
  volume  Sets the volume of the player. (arg: int, 0 ~ 100)
No Category:
  botstop
  help    Shows this message

Type !help command for more info on a command.
You can also type !help category for more info on a category.

Create your own bot locally

  1. Go to discord application and create your application with bot
  2. In Bot
    • Privileged Gateway Intents: turn on Presence Intent, Server Members Intent
    • write your token in dc_token.txt
  3. In Oauth2
    • bot > Administrator to get your bot's join link

Requirements

  • Python 3.5+
pip install -r requirements.txt

Run

python main.py

Run on Heroku

remember to hide your DISCORD_TOKEN

  1. add DISCORD_TOKEN at Settings > Config Vars
  2. add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git, https://github.com/xrisk/heroku-opus at Settings > Buildpacks

Clone from

gist.guac420/music_bot_example.py

Other References

TODO

  • add support for playlist
  • 'skip' cause 2 songs skipped because of youtube's frequent ip ban -> to make some wait via this action

About

make options to play simple yt musics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published