Last active
August 7, 2022 01:34
-
-
Save pedroricardo/8654570f017e69bd3ada7e0f39876899 to your computer and use it in GitHub Desktop.
Criando Bot Para Discord #6 - Welcome/Bem-vindo [Python] [PT-BR]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@client.event | |
async def on_member_join(member): | |
canal = client.get_channel("423328604911304708") | |
regras = client.get_channel("420612829838573588") | |
msg = "Bem Vindo {}\n leia as {}".format(member.mention, regras.mention) | |
await client.send_message(canal, msg) #substitua canal por member para enviar a msg no DM do membro | |
@client.event | |
async def on_member_remove(member): | |
canal = client.get_channel("423328604911304708") | |
msg = "Adeus garotinho juvenil {}".format(member.mention) | |
await client.send_message(canal, msg) #substitua canal por member para enviar a msg no DM do membro |
Pessoal que usa format nesses tempos kkkk eu atualizei o código tinha alguns erros
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no meu não está funcionando