Files
botmafieux/setup/config.py
Mathéo Nebulo9 DESSAUVAGES d14ca4ab3e
Some checks failed
CD / Deploy to VPS (push) Has been cancelled
feat: Add Russian Roulette feature betwwen two players
2026-07-14 16:12:16 +02:00

19 lines
413 B
Python

import os
from dotenv import load_dotenv
class Config:
load_dotenv()
TOKEN = str(os.getenv("TOKEN", ""))
CONFIG_PATH = str(os.getenv("CONFIG_PATH"))
COGS = os.getenv("COGS", "")
@classmethod
def get_cogs(cls):
raw_value = cls.COGS.strip()
if not raw_value:
return None
return [item.strip().lower() for item in raw_value.split(",") if item.strip()]