I've been trying to figure this out. I don't want to have to use commands to get the bot to join a voice call. I just want it to do it by itself as soon as it goes online. Could someone help me with that? Just so you know I'm using python.
Here are some things I've tried:
@client.command()
async def join(ctx):
channel = ctx.author.voice.channel
await channel.connect()
@client.command()
async def leave(ctx):
await ctx.voice_client.disconnect()
This is a good method but it requires user input and for the user to already be in a voice call. I want the bot to just automatically join a voice call as soon as it goes online. No user input required.