Ejemplo n.º 1
0
 async def on_reaction_remove(self, reaction, user):
     if str(
             reaction
     ) == JOIN_EMOJI and reaction.message.author.id == self.bot.user.id and not user.bot:
         room = Room.from_message(reaction.message)
         if room:
             await self.try_leave(reaction.message.channel, room, user)
Ejemplo n.º 2
0
 async def on_reaction_add(self, reaction, user):
     if reaction.message.author.id == self.bot.user.id and not user.bot:
         if hasattr(user, 'guild'):
             if str(reaction) == JOIN_EMOJI:
                 room = Room.from_message(reaction.message)
                 if room:
                     await self.try_join(reaction.message.channel, room,
                                         user)
         else:
             await self.try_invite_response(reaction, user)