sherpaBot/SherpaBot.py
async def on_raw_reaction_add(self, payload):
        """Add sherpa role when a reaction is added on a particular message (not a message from sherpabot or a
        reaction of sherpabot) """
        if payload.user_id == self.bot.user.id or payload.message_id == self.bot.user.id:  # check if user that reacted is not sherpaBot and that the message isn't from sherpaBot
            return
        if not (payload.guild_id in self.channels.reaction_channel and
                self.channels.reaction_channel[payload.guild_id].id == payload.channel_id):
            return
        if payload.message_id in Constants.GUIDELINES_MSG_ID and payload.emoji == Constants.emoji:
            member_ = payload.member
            role = discord.utils.get(member_.guild.roles, name=Constants.ROLE_TO_VIEW)
            await member_.add_roles(role)
        return
Add sherpa role when a reaction is added on a particular message (not a message from sherpabot or a
        reaction of sherpabot) 
Add sherpa role when a reaction is added on a particular message (not a message from sherpabot or a
reaction of sherpabot)
Add sherpa role when a reaction is added on a particular message ( not a message from sherpabot or a reaction of sherpabot )
async def on_raw_reaction_add(self, payload):
        if payload.user_id == self.bot.user.id or payload.message_id == self.bot.user.id:  
            return
        if not (payload.guild_id in self.channels.reaction_channel and
                self.channels.reaction_channel[payload.guild_id].id == payload.channel_id):
            return
        if payload.message_id in Constants.GUIDELINES_MSG_ID and payload.emoji == Constants.emoji:
            member_ = payload.member
            role = discord.utils.get(member_.guild.roles, name=Constants.ROLE_TO_VIEW)
            await member_.add_roles(role)
        return
async def on_raw_reaction_add ( self , payload ) : if payload . user_id == self . bot . user . id or payload . message_id == self . bot . user . id : return if not ( payload . guild_id in self . channels . reaction_channel and self . channels . reaction_channel [ payload . guild_id ] . id == payload . channel_id ) : return if payload . message_id in Constants . GUIDELINES_MSG_ID and payload . emoji == Constants . emoji : member_ = payload . member role = discord . utils . get ( member_ . guild . roles , name = Constants . ROLE_TO_VIEW ) await member_ . add_roles ( role ) return
Add sherpa role when a reaction is added on a particular message (not a message from sherpabot or a
reaction of sherpabot)
Add sherpa role when a reaction is added on a particular message ( not a message from sherpabot or a reaction of sherpabot )
"""Add sherpa role when a reaction is added on a particular message (not a message from sherpabot or a
        reaction of sherpabot) """ # check if user that reacted is not sherpaBot and that the message isn't from sherpaBot
self
payload