Fix système arriver départ V1
This commit is contained in:
parent
01dd4979d8
commit
d9afa32828
18 changed files with 1367 additions and 291 deletions
|
|
@ -1,12 +1,17 @@
|
|||
# utils/no_link.py
|
||||
# commandes/no_link.py
|
||||
import re
|
||||
import disnake
|
||||
from disnake.ext import commands
|
||||
import json
|
||||
import os
|
||||
|
||||
# Fichier JSON de configuration security
|
||||
SECURITY_FILE = "security.json"
|
||||
# Chemins ABSOLUS
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
DATA_DIR = os.path.join(BASE_DIR, "..", "data")
|
||||
SECURITY_FILE = os.path.join(DATA_DIR, "security.json")
|
||||
|
||||
# Créer le dossier data/ s'il n'existe pas
|
||||
os.makedirs(DATA_DIR, exist_ok=True)
|
||||
|
||||
def load_guild_security(guild_id: int) -> dict:
|
||||
"""Retourne la configuration d'un serveur."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue