A Discord audio bot that accept a list of youtube channel ID's to be streamed into you Discord chatroom/channels. This Discord bot is best ran in a Docker container, I've provided examples below.
docker pull hunterlong/discordDISCORD environment variable.SERVER MEMBERS INTENT is switched ON for the bot.https://discord.com/oauth2/authorize?scope=bot&client_id=<CLIENT_ID_HERE>. Be sure to replace <CLIENT_ID_HERE> with your bot's client ID. This will authorize your bot to become a member of your channel.CHANNEL_ID.GUILD_ID.YOUTUBE.You need to authenticate your bot to enter the channel by visiting a URL like below:
https://discord.com/oauth2/authorize?scope=bot&client_id=<CLIENT_ID>
Replace <CLIENT_ID> with the bot's client ID number and authorize the bot.
YOUTUBE: Found on Youtube's Credentials API pageDISCORD: Discount bot client secret found on Discord's bot websiteCHANNELS: A comma delimited list of Youtube ChannelsCHANNEL_ID: The Discord chatroom/channel ID numberGUILD_ID: The Discord organization ID numberdiscord_music:
container_name: discord_music
image: hunterlong/discord
restart: always
environment:
YOUTUBE: YOUTUBE_API_KEY
DISCORD: DISCORD_BOT_SECRET
CHANNELS: "UCw49uOTAJjGUdoAeUcp7tOg,UCw49uOTAJjGUdoAeUcp7tOg"
CHANNEL_ID: 7101030EXAMPLE735568
GUILD_ID: 7101EXAMPLE490182
volumes:
- discordaudio:/downloads:rw
You should have Golang installed, I recommend using the latest version. The follow the simple steps below:
go mod download Download all go modulesgo build -o discord Compile golang binary for your system's OS.MIT. PR's accepted if you want to.
Content type
Image
Digest
Size
41.4 MB
Last updated
over 6 years ago
docker pull hunterlong/discord