Update events.py

This commit is contained in:
Elmon11 2020-12-17 00:09:28 +01:00 committed by GitHub
parent b01d0f5b05
commit 66ff219d87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,8 @@ class Events(commands.Cog):
pass pass
else: else:
for role_id, msg_id, emoji in self.bot.reaction_roles: for role_id, msg_id, emoji in self.bot.reaction_roles:
if 'sixx' in payload.member.name.lower():
return
if msg_id == payload.message_id and emoji == str(payload.emoji.name): if msg_id == payload.message_id and emoji == str(payload.emoji.name):
await payload.member.add_roles(self.bot.get_guild(payload.guild_id).get_role(role_id), reason='reaction') await payload.member.add_roles(self.bot.get_guild(payload.guild_id).get_role(role_id), reason='reaction')
if payload.channel_id == reports_channel_id: if payload.channel_id == reports_channel_id: