Add /shorten command for circe

This commit is contained in:
Case Duckworth 2021-09-10 18:28:18 -05:00
parent 04086ec1e3
commit 84c35ed863
1 changed files with 6 additions and 0 deletions

View File

@ -262,6 +262,12 @@ AKA, DO NOT USE THIS FUNCTION!!!"
(with-current-buffer buf
(kill-buffer))))))
(defun circe-command-SHORTEN (url)
"Shorten URL using `0x0-shorten-uri'."
(interactive "sURL to shorten: ")
(let ((short-url (0x0-shorten-uri (0x0--choose-server) url)))
(circe-command-SAY short-url)))
(:with-mode circe-chat-mode
(:hook #'acdw/stop-paren-annoyances
#'enable-circe-color-nicks