diff options
Diffstat (limited to 'qkbox/toot.scm')
-rw-r--r-- | qkbox/toot.scm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qkbox/toot.scm b/qkbox/toot.scm new file mode 100644 index 0000000..94de0ad --- /dev/null +++ b/qkbox/toot.scm @@ -0,0 +1,15 @@ +(define-module (qkbox toot) + #:use-module (ice-9 format) + #:export (post)) + +(define* (post x #:key spoiler-text) + (apply system* + "toot" + "post" + (cond + ((string? x) x) + (else + (format #f "~y" x))) + `(,@(if spoiler-text + `("-p" ,spoiler-text) + '())))) |