V1.2 récupération automatique des informations des agent O.K sur le website
This commit is contained in:
parent
fe05572549
commit
b5fd8b6526
2 changed files with 40 additions and 2 deletions
|
|
@ -471,6 +471,7 @@ class WebsiteSync(commands.Cog, name="Website Sync"):
|
||||||
async def setup(bot: commands.Bot):
|
async def setup(bot: commands.Bot):
|
||||||
cog = WebsiteSync(bot)
|
cog = WebsiteSync(bot)
|
||||||
await bot.add_cog(cog)
|
await bot.add_cog(cog)
|
||||||
# Enregistre le groupe de commandes json-config
|
# 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)
|
bot.tree.add_command(cog.json_config_group)
|
||||||
logger.info("Cog WebsiteSync chargé.")
|
logger.info("Cog WebsiteSync chargé.")
|
||||||
|
|
|
||||||
37
data/json-export-config.json
Normal file
37
data/json-export-config.json
Normal file
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue