#!/usr/bin/env python3
"""Generates the bot's banners and avatar (SVG -> PNG via rsvg-convert). Run from this directory."""
import subprocess
MARK = ''
DEFS = """
"""
def banner(name, title, sub, tag):
w, h = 1000, 280
svg = f""""""
open(f"{name}.svg", "w").write(svg)
subprocess.run(["rsvg-convert", "-w", str(w), f"{name}.svg", "-o", f"{name}.png"], check=True)
banner("ticket", "SUPPORT", "open a private ticket - staff will reply", "LOKI DEV / TICKETS")
banner("verify", "VERIFY", "react to unlock the server", "LOKI DEV / ACCESS")
banner("welcome", "WELCOME", "good to have you here", "LOKI DEV / COMMUNITY")
banner("help", "COMMANDS", "everything the bot can do", "LOKI DEV / HELP")
avatar = f""""""
open("avatar.svg", "w").write(avatar)
subprocess.run(["rsvg-convert", "-w", "1024", "avatar.svg", "-o", "avatar.png"], check=True)