zyxw59 / formationbot-rs

FormationBot renders square dance formations as pictures, to aid discussions of calling
MIT License
0 stars 1 forks source link

FormationBot

FormationBot renders square dance formations as pictures, to aid discussions of calling. It is open source, under the MIT license.

This version of FormationBot is based off of Alex Dehnert's original

Formatting language

FormationBot supports a mini-language to indicate formations. A person is represented by a single character, with optional prefixes to modify rendering.

Facing directions are indicated with:

Other common prefixes include:

For complicated formations, one trick is that each line is centered. If that's not enough, you can also prefix u, d, l, or R (yes, case-sensitive) to shift a person up or down a half matrix spot.

Improvements over the old version

Standalone usage

If you don't have it installed, install Rust.

Then, run cargo run. This program reads from stdin until end-of-file, and then renders the formation in SVG to the file out.svg.

Discord bot

Follow the instructions in discord-bot/README.md