summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-04 05:52:35 +0200
committerdefault <nobody@localhost>2023-05-04 05:52:35 +0200
commitcf8d91147b1a0233ba5d3d98a8806bd2a87c222d (patch)
tree4322845077f98e9eb74e71467c9de37aafcc0e2f /doc
parentcf2b334d86e8b4ccd0525fbb741fbbaf86a2c618 (diff)
Updated documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/snac.114
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/snac.1 b/doc/snac.1
index ec8df64..91d7e85 100644
--- a/doc/snac.1
+++ b/doc/snac.1
@@ -220,6 +220,20 @@ Please take note that they will show your timeline in a 'Mastodon fashion'
post display with the most active threads at the top that the web interface of
.Nm
provides.
+.Ss Implementing post bots
+.Nm
+makes very easy to post messages in a non-interactive manner. This example
+posts a string:
+.Bd -literal -offset indent
+uptime | snac note $SNAC_BASEDIR $SNAC_USER -
+.Ed
+.Pp
+You can setup a line like this from a
+.Xr crontab 5
+or similar. Take note that you need a) command-line access to the same machine
+that hosts the
+.Nm
+instance, and b) write permissions to the storage directories and files.
.Sh ENVIRONMENT
.Bl -tag -width Ds
.It Ev DEBUG