The Psychotic Network Ferret on Nostr: For those that are curious how I add extra text to a rule for a one time post, I ...
For those that are curious how I add extra text to a rule for a one time post, I don't just copy the rule into the Mastodon client and add text, I use the tooling I built for the bot, and some UNIX CLI know how.
The command looks like this:
%fortune -m <rule hex id> /path/to/rules | tail +2 | xargs -0 printf "%s\nmessage/commentary goes here\n" | cat4stuff -i <mastodon instance id>
Published at
2025-03-03 13:33:32Event JSON
{
"id": "46f57670f51efa27f88c2680a68e5c69b1e9024da56581e209bba7e3199dd16a",
"pubkey": "ccd901e24a600633b2a09214c2c2b1f8b9c73983f303b617bb3876d21aed4644",
"created_at": 1741008812,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.bsd.cafe/users/nuintari/statuses/114098753558307999",
"activitypub"
]
],
"content": "For those that are curious how I add extra text to a rule for a one time post, I don't just copy the rule into the Mastodon client and add text, I use the tooling I built for the bot, and some UNIX CLI know how.\n\nThe command looks like this:\n\n%fortune -m \u003crule hex id\u003e /path/to/rules | tail +2 | xargs -0 printf \"%s\\nmessage/commentary goes here\\n\" | cat4stuff -i \u003cmastodon instance id\u003e",
"sig": "6ead436548b8a9831c95f9a55f6d53b91ea4cde280c3e373eca91465358e4672b78db7e62fa3ae8ad0ebb3409c006a3f91f1485e71254336028ace32c9978811"
}