Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
619 views
in Technique[技术] by (71.8m points)

bots - Discord.py clone my voice to other channels

Is there anyway I can create a bot using discord.py that joins my voice channel and share what I'm saying or whatever is playing to other voice channels in my server and other servers as well?

question from:https://stackoverflow.com/questions/65851996/discord-py-clone-my-voice-to-other-channels

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

First of all, larger bots like "Groovy" or "Rythm" allow use in multiple channels as they can be run on a completely different shard for each server, meaning it can be used and commands run to function in each and every server.

It seems in your case, it would not be able to do this, as it would be able to join multiple channels but can only have usage in one channel at a time.

I have found only Discord.js has a feature like this, but similar, it records user voice and saves it as an MP3 file. The Discord. js voice system allows your bot to join voice channels and play audio. The main part is, Discord does not officially support Discord bots receiving audio see here, so there may be some breakages.

Obviously, you aren't using JS so this would not be possible, or at least very difficult to make. But hope this helps in some way.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...