Skip to content

Instantly share code, notes, and snippets.

@pedroricardo
Last active August 7, 2022 01:34
Show Gist options
  • Save pedroricardo/8654570f017e69bd3ada7e0f39876899 to your computer and use it in GitHub Desktop.
Save pedroricardo/8654570f017e69bd3ada7e0f39876899 to your computer and use it in GitHub Desktop.
Criando Bot Para Discord #6 - Welcome/Bem-vindo [Python] [PT-BR]
@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
@gabriel13245
Copy link

a

@Plaier
Copy link

Plaier commented May 29, 2020

b

@YatoLPz
Copy link

YatoLPz commented Aug 30, 2020

Olha só. Que nice, Vou passar no Seu Canal.

@MateusSlovakSilva
Copy link

não esta funcionando no meu

@Minekplay
Copy link

no meu não está funcionando

@D4ltonico
Copy link

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