forgor adding GUILD_VOICE_STATES oopsie
Build and publish ich_iel bot / build (push) Successful in 6m0s

This commit is contained in:
2026-04-30 16:59:31 +02:00
parent 2a33bc70b7
commit 9acb6b04eb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 = {