Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @client.command
- async def on_message(message):
- channel = message.channel
- if message.content.upper().startswith('AGREE'):
- chan == discord.utils.get(author.server, name=‘agree’
- if message.channel == chan:
- auth = message.author
- role = discord.utils.get(auth.server.roles, name='Member')
- await bot.add_roles(auth, role)
- embed = discord.Embed(
- colour = discord.Colour.dark_grey()
- )
- embed.set_author(name='LOGS')
- embed.add_field(name='Member Joined', value='Member used `agree` in #start-here.', inline=True)
- await bot.send_message(discord.Object(id="468790809597050913"), embed=embed)
- await bot.delete_message(message)
- else:
- return
- await bot.process_commands(message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement