|
|
@ -360,17 +360,8 @@ class Enso(Cog):
|
|
|
|
# Getting the channel verification by setting it to #verification
|
|
|
|
# Getting the channel verification by setting it to #verification
|
|
|
|
channel = guild.get_channel(self.bot.enso_verification_ID)
|
|
|
|
channel = guild.get_channel(self.bot.enso_verification_ID)
|
|
|
|
|
|
|
|
|
|
|
|
# If the channel is #verification
|
|
|
|
# If the channel is #verification and If the member is not a user, do nothing
|
|
|
|
if payload.channel_id == channel.id:
|
|
|
|
if not payload.member.bot and 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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Get the 'Lucid' role and then give it to the user
|
|
|
|
# Get the 'Lucid' role and then give it to the user
|
|
|
|
lucid = discord.utils.get(guild.roles, name='Lucid')
|
|
|
|
lucid = discord.utils.get(guild.roles, name='Lucid')
|
|
|
|