Some checks failed
CD / Deploy to VPS (push) Has been cancelled
19 lines
413 B
Python
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()]
|
|
|