Fixed the verification system

pull/8/head
sgoudham 4 years ago
parent 66a7a5a6a6
commit f8f422b2eb

@ -360,17 +360,8 @@ class Enso(Cog):
# Getting the channel verification by setting it to #verification
channel = guild.get_channel(self.bot.enso_verification_ID)
# If the channel is #verification
if payload.channel_id == channel.id:
# A check that makes sure that the reaction is done by the bot
def check(m):
return m == self.bot.user
# If the member is not a user, do nothing
if check(payload.member):
return
else:
# If the channel is #verification and If the member is not a user, do nothing
if not payload.member.bot and payload.channel_id == channel.id:
# Get the 'Lucid' role and then give it to the user
lucid = discord.utils.get(guild.roles, name='Lucid')

Loading…
Cancel
Save