Bot Lab
bot-lab.bsky.social
Bot Lab
@bot-lab.bsky.social
Maker of fun and informative accounts.
Congratulations Olaf and thanks for the wonderful service. I’m about to tick over 300 followers for my most popular bot, @worstmovies.bsky.social, which I’m pretty pleased about in only 3 months.
August 15, 2025 at 12:34 PM
Found postActions only when reading through the Tracery source code.

The parseTag function returns this structure:

return {
preActions : prefxns,
postActions : postfxns,
symbol : symbol,
mods : mods,
raw : tag
};
June 30, 2025 at 4:31 PM
Ah! Well done. That might explain the purpose of postActions (where they are at the end, not the start, of the rule).

So, this works too, and may be useful when you want to use & immediately change a value

"branchB_1": ["(B1: #fishColor#) [fishColor:magenta]"],

"branchB_2": ["(B2: #fishColor#)"],
June 30, 2025 at 5:12 AM
A round() function as in PHP with optional positive or negative precision would seem useful to avoid 0.33333333333, etc.
June 9, 2025 at 10:50 AM