Generate brat-style images from text using the bundled Python scripts.
scripts/render_brat.py.!brat hello world, run scripts/handle_brat_command.py.handle_brat_command.py now sanitizes slug/output naming and always writes into its managed scripts/out directory tree.!brat command parsing.scripts/handle_brat_command.py for command-style input.scripts/render_brat.py for direct text-to-image rendering.--size 512 --sticker-size 512 and send the generated PNG with no caption.python scripts/render_brat.py "hello world" --png out/hello-world.png --webp out/hello-world.webp
!brat commandpython scripts/handle_brat_command.py "!brat hello world"
python scripts/handle_brat_command.py --size 512 --sticker-size 512 "!brat hello world"
!brat with no text, ask briefly for the text.scripts/render_brat.py: deterministic renderer for PNG/WEBP outputscripts/handle_brat_command.py: parser for !brat-style input that emits JSON with generated paths共 1 个版本