forgor adding GUILD_VOICE_STATES oopsie
Build and publish ich_iel bot / build (push) Successful in 6m0s
Build and publish ich_iel bot / build (push) Successful in 6m0s
This commit is contained in:
@@ -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
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user