Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
/ MusicCog Public archive

Old discord bot music cog streaming youtube audio.

Notifications You must be signed in to change notification settings

geoversed/MusicCog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Music Cog

My implementation of a music cog from my bot which I don't use anymore. It is mostly based off the offical discord.py's basic voice example, with a few changes and more features.

The local filesystem component along with it's respective cog, has now been removed from my bot instance.

This code was written in discord.py, and was working as of v2.4 (27th June 2024) on Python v3.12.5.

Intents

# Only subscribe to intents this cog needs
intents = discord.Intents.none()
intents.message_content = True
intents.guild_messages = True
intents.guilds = True
intents.voice_states = True

This implementation doesn't have a guild only decorator in the commands because of the intents.

It is not subscribed to DM message events at all so it never receives them, meaning the command is never invoked in DM contexts.

Requirements

The requirements are in the text file.

About

Old discord bot music cog streaming youtube audio.

Topics

Resources

Stars

Watchers

Forks

Languages