Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import discord
  2. from discord.ext import commands
  3.  
  4. client = discord.Client()
  5. bot = commands.Bot(commands_prefix ='!')
  6.  
  7. @client.event
  8. async def on_ready():
  9. print('Bot is ready.')
  10.  
  11. @client.event
  12. async def on_reaction_add(reaction, user):
  13. Channel = client.get_channel('600712995210788876')
  14. if reaction.message.channel.id != Channel:
  15. return
  16. if reaction.emoji == "\U0001f44d":
  17. Role = discord.utils.get(user.server.roles, name="Member")
  18. await client.add_roles(user, Role)
  19. await client.add_roles(reaction.message.author, role)
  20.  
  21.  
  22. client.run('token')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement