From 5ca76937f92a0d45e18022d58663096cbfcb54d7 Mon Sep 17 00:00:00 2001 From: GZod01 Date: Mon, 16 Dec 2024 13:29:58 +0100 Subject: [PATCH] a --- perso_commands.py | 3 ++- public_env.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/perso_commands.py b/perso_commands.py index 732031f..7f3507b 100644 --- a/perso_commands.py +++ b/perso_commands.py @@ -4,6 +4,7 @@ from GammaRPBot_Define import GammaRPBot import aiosqlite import base64 import io +from public_env import * _sql_table="""CREATE TABLE personnages ( @@ -89,7 +90,7 @@ class PersoCommands(app_commands.Group): @app_commands.command(name="lister",description="Liste tous les personnages") async def list_characters(self,interaction:discord.Interaction,output_hidden:bool=False): #admin - if not interaction.user.id in self.bot.owner_ids: + if interaction.user.id !=super_owner_id: await interaction.response.send_message("Vous n'avez pas la permission d'exécuter cette commande",ephemeral=True) return print("perso list") diff --git a/public_env.py b/public_env.py index 0b62d12..f890c27 100644 --- a/public_env.py +++ b/public_env.py @@ -1 +1,2 @@ -from private_env import * \ No newline at end of file +from private_env import * +super_owner_id=690103250636243068 \ No newline at end of file