From 9acb6b04eb0ae9f00d72618fd0545146771ff6cb Mon Sep 17 00:00:00 2001 From: Michelle Date: Thu, 30 Apr 2026 16:59:31 +0200 Subject: [PATCH] forgor adding GUILD_VOICE_STATES oopsie --- main.py | 2 +- yt_player.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 6e0f051..87e4f36 100644 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ import yt_player load_dotenv() prefix = os.getenv("COMMAND_PREFIX", "/") -bot = fluxer.Bot(command_prefix=prefix, intents=fluxer.Intents.GUILD_MESSAGES | fluxer.Intents.GUILDS | fluxer.Intents.MESSAGE_CONTENT) +bot = fluxer.Bot(command_prefix=prefix, intents=fluxer.Intents.GUILD_MESSAGES | fluxer.Intents.GUILDS | fluxer.Intents.MESSAGE_CONTENT | fluxer.Intents.GUILD_VOICE_STATES) yt_player.setup(bot) task = None diff --git a/yt_player.py b/yt_player.py index 7be261e..32ae7de 100644 --- a/yt_player.py +++ b/yt_player.py @@ -18,7 +18,7 @@ async def play(ctx, *, url: str): voice_state = _bot.get_voice_state(guild_id, ctx.author.id) if voice_state is None or voice_state.channel_id is None: - await ctx.reply("You're not in a voice channel!") + await ctx.reply("You're not in a voice channel!") return logging.info(f"Playing {url}") ydl_opts = {