feat: image generater support.

This commit is contained in:
GiriNeko 2025-09-02 17:33:23 +08:00
parent 099a79fe5f
commit e9b2033c3e
5 changed files with 133 additions and 347 deletions

7
config.py Normal file
View file

@ -0,0 +1,7 @@
import os
BACKGROUND_URL = os.environ.get("BACKGROUND_URL", "https://www.loliapi.com/acg/")
DEFAULT_ICON = os.environ.get("DEFAULT_ICON", "mcstatus_img/minecraft-creeper-face.png")
FONT_PATH = os.environ.get("FONT_PATH", "mcstatus_img/MiSans-Bold.ttf")
IMAGE_WIDTH = int(os.environ.get("IMAGE_WIDTH", "0"))
IMAGE_HEIGHT = int(os.environ.get("IMAGE_HEIGHT", "0"))