updated after a while because local stuff
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import discord
|
||||
|
||||
class MyClient(discord.Client):
|
||||
async def on_ready(self):
|
||||
print('Logged in as')
|
||||
print(self.user.name)
|
||||
print(self.user.id)
|
||||
print('------')
|
||||
|
||||
async def on_member_join(self, member):
|
||||
guild = member.guild
|
||||
await guild.default_channel.send('Welcome {0.mention} to {1.name}!'.format(member, guild))
|
||||
|
||||
client = MyClient()
|
||||
client.run('token')
|
||||
Reference in New Issue
Block a user