Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- from discord.ext import commands
- client = discord.Client()
- bot = commands.Bot(commands_prefix ='!')
- @client.event
- async def on_ready():
- print('Bot is ready.')
- @client.event
- async def on_reaction_add(reaction, user):
- Channel = client.get_channel('600712995210788876')
- if reaction.message.channel.id != Channel:
- return
- if reaction.emoji == "\U0001f44d":
- Role = discord.utils.get(user.server.roles, name="Member")
- await client.add_roles(user, Role)
- await client.add_roles(reaction.message.author, role)
- client.run('token')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement