From 2e7c31b591497ea71f92cb816c8ec0fc23a616ab Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Sun, 12 Apr 2020 16:37:25 -0500 Subject: doc --- posterbot.lisp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'posterbot.lisp') diff --git a/posterbot.lisp b/posterbot.lisp index d2d3531..be61382 100644 --- a/posterbot.lisp +++ b/posterbot.lisp @@ -33,6 +33,8 @@ the downloaded file." (t type))))) (defun handle-link-candiate (word) + "Checks if WORD is an HTTP URI pointing to an image resource. If it +is, downloads the image and posts it to the current room." (let ((link (ppcre:scan-to-strings +image-link-regex+ word))) (when link (let* ((file-path (download-link link)) -- cgit v1.2.3