#Getting the basic_voice.py example to work

1 messages · Page 1 of 1 (latest)

rose dune
#

the basic_voice example is having a stroke on my pc

#

C:\Users\karso\program\weather_bot>py tp.py
Logged in as Nexus (alpha)#2687 (ID: 1062252587891572867)

General
Ignoring exception in command play:
Traceback (most recent call last):
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\core.py", line 173, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\karso\program\weather_bot\tp.py", line 82, in play
source = disnake.PCMVolumeTransformer(disnake.FFmpegPCMAudio(query))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\player.py", line 288, in init
super().init(source, executable=executable, args=args, **subprocess_kwargs)
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\player.py", line 149, in init
self._process: subprocess.Popen[bytes] = self._spawn_process(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\player.py", line 167, in _spawn_process
raise ClientException(f"{executable} was not found.") from None
disnake.errors.ClientException: ffmpeg was not found.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\bot_base.py", line 591, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\core.py", line 914, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\ext\commands\core.py", line 182, in wrapped
raise CommandInvokeError(exc) from exc
disnake.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: ffmpeg was not found.
Exception ignored in: <function AudioSource.del at 0x0000017DB5F58900>
Traceback (most recent call last):
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\player.py", line 100, in del
self.cleanup()
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\player.py", line 221, in cleanup
self._kill_process()
File "C:\Users\karso\AppData\Local\Programs\Python\Python311\Lib\site-packages\disnake\player.py", line 172, in _kill_process
proc = self._process
^^^^^^^^^^^^^
AttributeError: 'FFmpegPCMAudio' object has no attribute '_process'

C:\Users\karso\program\weather_bot>

hazy sluice
#

no idea i always just made sure it was in the same folder as the bot

rose dune
#

just move ffmpeg to the same folder?

hazy sluice
#

no idea

#

i hate audio stuff

#

lol

#

oh

#

u need to add to existing path

#

not make a new one

rose dune
#

Getting the basic_voice.py example to work

#

Ok, now im getting told that yt_dl cant download any video i send

hazy sluice
#

whats the error

rose dune
hazy sluice
#

nothing against the basic example

#

but this prob better suit ur needs

#

lol

rose dune
#

Lavalink is slow, and tends to crash often

hazy sluice
#

compared to YTDL? lol

rose dune
#

i know a guy who made a js bot that used the lavalink nodes, and his bot was down every 15-30 minutes because lavalink crashed

hazy sluice
#

ehhh prob user error lol

#

i think

rose dune
#

no, the actual node went down

hazy sluice
#

someone runs a decent sized bot using that lib

rose dune
#

idk then

hazy sluice
#

the node is self hosted tho

#

lol

rose dune
#

imma just take the easy path and stop trying to use voice client

hazy sluice
#

seems like best option haha

rose dune
#

!solved

#

and, thats not the command

hazy sluice
#

/solved