Sign inSign up

charlocharlie/youtube-clip-discord

By charlocharlie

•Updated about 2 years ago

A voice bot that plays random audio segments from a YouTube channel's upload catalog.

Image
0

607

charlocharlie/youtube-clip-discord repository overview

⁠youtube-clip-discord

A Discord bot that plays mid-video, fixed length audio segments in a voice channel.

Also has an optional feature to play on a Twitch channel point redemption event.

⁠Docker Congifuration

⁠Environment Variables
VariableExampleDefaultDescription
BOT_TOKENk5NzE2NDg1MTIwMjcUxhiHBot token. See bot applications⁠
CHANNEL_USERNAMEcharlocharlieLUsername for the YouTube account, typically in the URL
YOUTUBE_API_KEYpsHi6lEseHEa6XACYv_7bXeb-edv6mwGServer-to-server API key for the YouTube Data V3 API⁠
COMMAND_PREFIXplayplayThe slash command trigger phrase
BOT_COLOR1234noneA hex color converted to decimal
CLIP_DURATION510Duration in seconds that the clip will run for
VOLUME0.70.5A value between 0 and 2 for volume. 1 is normal
STATUS_TIMEOUT12060How a new video's title shows in the bot's status before resetting to the channel name
TZAmerica/ChicagoUTC(Optional) TZ name⁠
CLIENT_IDabc123abc123(Optional) Twitch application client ID
CLIENT_SECRETxyz789xyz789(Optional) Twitch application client secret
TWITCH_USERninja(Optional) Twitch user to listen for channel point redemptions on
PRIMARY_GUILD_ID00000000000000(Optional) Discord guild ID of the server where the streamer is in voice
STREAMER_DISCORD_ID00000000000000(Optional) Discord user ID of the streamer
REDEMPTION_EVENT_MATCHmusic(Optional) A case-insensitive string to match with a channel point event name
BASE_URLhttps://twitch.example.com(Optional) Base URL where the bot is hosted
TWITCH_DURATION510(Optional) How long a sound clip invoked from a channel point event should last
⁠Volumes
Host locationContainer locationModeDescription
/my/host/dir//usr/src/bot/configrwLocation of the cached audio files
⁠Ports
HostContainerDescription
choose3000Port that the Twitch server is exposed on

Tag summary

Content type

Image

Digest

sha256:c8d9a5699…

Size

123.6 MB

Last updated

about 2 years ago

docker pull charlocharlie/youtube-clip-discord