Dr_Frank / utils /helpers.py
Frajosgro's picture
Upload 5 files
9eb915e verified
raw
history blame
448 Bytes
import os
from typing import Dict, Any
def load_config() -> Dict[str, Any]:
"""Load configuration from config.py"""
from config import CONFIG
return CONFIG
def get_asset_path(asset_name: str) -> str:
"""Get the full path to an asset"""
return os.path.join(os.path.dirname(__file__), "../assets", asset_name)
def format_response(text: str) -> str:
"""Format the bot's response text"""
return text.strip().capitalize()