fix verify command

This commit is contained in:
eek7574 2022-11-23 11:54:59 +00:00
parent e4f3af5c00
commit e10cac324e
2 changed files with 15 additions and 14 deletions

View file

@ -21,6 +21,7 @@ class VerifyCog(commands.Cog):
role = discord.utils.find(lambda r: r.name.lower() == "verified", ctx.guild.roles) role = discord.utils.find(lambda r: r.name.lower() == "verified", ctx.guild.roles)
channel = discord.utils.get(ctx.guild.text_channels, name="verify") channel = discord.utils.get(ctx.guild.text_channels, name="verify")
if role in ctx.author.roles:
if role and role < ctx.me.top_role: if role and role < ctx.me.top_role:
await ctx.author.remove_roles(role, reason=f"Auto de-verified") await ctx.author.remove_roles(role, reason=f"Auto de-verified")
if channel: if channel:
@ -32,7 +33,6 @@ class VerifyCog(commands.Cog):
except discord.Forbidden: except discord.Forbidden:
pass pass
return return
else:
view = VerifyView(ctx) view = VerifyView(ctx)
return await ctx.respond(view=view, ephemeral=True) return await ctx.respond(view=view, ephemeral=True)

1
website/.env Normal file
View file

@ -0,0 +1 @@
NEXTAUTH_URL=https://lcc.nexy7574.cyou