How do you get a discord bot to send a message when someone joins in python

40

@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()
@client.event
async def on_member_join(member):
    await member.send('Private message')

Comments

Submit
0 Comments