-
-
Save ace3df/fae6cc53cf5869816f9051784c60c549 to your computer and use it in GitHub Desktop.
This file contains 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
import discord | |
client = discord.Client() | |
@client.event | |
async def on_member_join(member): | |
msg = "Hey, {0.mention}! Welcome to {1.name}" | |
await client.send_message(msg, fmt.format(member, member.server)) | |
client.run("token") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment