Skip to content

Instantly share code, notes, and snippets.

@ace3df
Created January 12, 2017 23:51
Show Gist options
  • Save ace3df/fae6cc53cf5869816f9051784c60c549 to your computer and use it in GitHub Desktop.
Save ace3df/fae6cc53cf5869816f9051784c60c549 to your computer and use it in GitHub Desktop.
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