I wrote a code in python using the libraries: discord.py, selenium and pydub, i also tried to use youtube_dl. Basically the logic is to transfer the audio from the website to the discord bot in the app s voice channel using selenium, ffmpeg and pydub in real time 24/7. Most of the time i tried to run the code i got this error message:[WARNING ] discord.gateway: Shard ID None heartbeat blocked for more than 10 seconds.
i need to know if there is a simpler way to do this and how to do it, I ll leave a print of the code
i also tried to use the youtube_dl library to play the audio track played on the radio in real time on discord, but this time the error is different, I run the code and enter the bot in voice but it doesn t play the radio.