diff --git a/commandes/website_sync.py b/commandes/website_sync.py index 71e584a..fac166a 100644 --- a/commandes/website_sync.py +++ b/commandes/website_sync.py @@ -471,6 +471,7 @@ class WebsiteSync(commands.Cog, name="Website Sync"): async def setup(bot: commands.Bot): cog = WebsiteSync(bot) await bot.add_cog(cog) - # Enregistre le groupe de commandes json-config - bot.tree.add_command(cog.json_config_group) + # Enregistre le groupe de commandes json-config s'il n'est pas déjà présent + if not bot.tree.get_command("json-config"): + bot.tree.add_command(cog.json_config_group) logger.info("Cog WebsiteSync chargé.") diff --git a/data/json-export-config.json b/data/json-export-config.json new file mode 100644 index 0000000..bd1043d --- /dev/null +++ b/data/json-export-config.json @@ -0,0 +1,37 @@ +{ + "targetGuildId": "1369669999345537145", + "autoHour": 3, + "autoMinute": 0, + "outputDir": "/home/gameurpro12/Documents/Mes_projets/site_Omega_Kube/website/data", + "founderRoles": [ + "fondateur", + "founder" + ], + "serverFields": { + "id": true, + "name": true, + "icon": true, + "banner": true, + "owner": true, + "memberCount": true, + "description": true, + "createdAt": true, + "boostLevel": false, + "boostCount": false, + "verificationLevel": false + }, + "memberFields": { + "id": true, + "username": true, + "displayName": true, + "globalName": true, + "avatar": true, + "bio": true, + "roles": true, + "joinedAt": true, + "createdAt": true, + "badges": false, + "accentColor": false, + "isBot": false + } +} \ No newline at end of file