Answers for "discord voice bot python"

8

python discord bot join voice channel

@bot.command()
async def join(ctx):
    channel = ctx.author.voice.channel
    await channel.connect()
@bot.command()
async def leave(ctx):
    await ctx.voice_client.disconnect()
Posted by: Guest on June-08-2020
0

speak by a discord bot in python

@client.event
async def on_ready():
    print("Ready when you are")
    while True:
        bop = input("")
        for server in client.servers:
            for channel in server.channels:
                if channel.name == "general":
                    await client.send_message(channel, bop)
Posted by: Guest on May-18-2021

Code answers related to "discord voice bot python"

Python Answers by Framework

Browse Popular Code Answers by Language