Based on the "basic_voice" discord.py example, expanded to add song queueing and improved performance.
!play <url>
!skip
!join [channel]
!stop
!clear
- Create an application and bot in the Discord Developer Portal
- Put the generated token in a .env file with the content
DISCORD_TOKEN=<token>
- Invite the bot to your server with the Discord Developer Portal URL generator -- add "bot" scope and "Send Messages", "Send Messages in Threads", "Connect", "Speak" and "Use Voice Activity" permissions
- Run with
python3 ./main.py