Skip to content

Commit

Permalink
Fixed last merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Endyya committed Nov 28, 2024
1 parent 63c31e7 commit 182feb0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/SilicaAnimus/discord_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ async def on_submit(self, interaction: discord.Interaction):
# last_name = nom
# )
is_member = True
if is_member:
return_message = f"{prenom} {nom} is a member"
else:
return_message = f"{prenom} {nom} is not a member"
embed = MessageTemplate(
title = 'Vérification du membre :',
description = return_message)
await interaction.response.send_message(embed = embed,
ephemeral = True)


class BureauCog(commands.Cog):
Expand All @@ -47,7 +56,6 @@ def __init__(self, parent_client):
self.logger = logging.getLogger(type(self).__name__)

@commands.command()
@commands.has_any_role(int(getenv("ADMIN_ROLE_ID")), int(getenv("BUREAU_ROLE_ID")))
async def nom_membre(self, ctx, *arg, **kwargs):
"""This command gets the name of the person from the google sheet"""

Expand All @@ -70,16 +78,8 @@ async def nom_membre(self, ctx, *arg, **kwargs):
)
else:
await ctx.channel.send(f"{tokens[1]} n'est pas dans la google sheet")
>>>>>>> origin/main
if is_member:
return_message = f"{prenom} {nom} is a member"
else:
return_message = f"{prenom} {nom} is not a member"
embed = MessageTemplate(
title = 'Vérification du membre :',
description = return_message)
await interaction.response.send_message(embed = embed,
ephemeral = True)





Expand Down

0 comments on commit 182feb0

Please sign in to comment.