This is a package to query a matrix homeserver, to get messages and send messages, etc
- Clone this git repo to somewhere it can be found by quicklisp, typically
~/quicklisp/local-projects/matrix-query
. - Load the project with
(ql:quickload :matrix-query)
.- This project depends on Drakma, and as such libssl. Your OS may have libssl under a different name than Drakma expects, and you will be hit with an error from CFFI. To get around this first find the name of your libssl with
sudo find / -name libssl*
and use that name in theuse-value
restart. For example on VoidLinux libssl islibssl.so.47
, so i enter("libssl.so.47")
.
- This project depends on Drakma, and as such libssl. Your OS may have libssl under a different name than Drakma expects, and you will be hit with an error from CFFI. To get around this first find the name of your libssl with
- Login by evaluating
(login "username" "password" :homeserver "homeserver.org/")
. - You can now sync and send messages.
Contains general variables and functions for talking to the matrix homeserver. Examples inlude:
- Variable *homeserver*
- Description a string containing the users homeserver
- Function make-api-call
- Syntax: make-api-call &rest api-strings → string
- Arguments
- api-strings — list of strings
- Description concatenates api-strings with the homeserver to generate an api url.
Contains general use functions and macros
- Macro string-case
- Syntax: string-case string matches &body otherwise → result
- Arguments
- string — a string to match against
- matches — a list of possible matching strings and what to do if they match, with an implicit progn
- ((“string” (print x) (print y))
- otherwise — a list of forms to evaluate in the event that no strings match
- Description expands into a cond statement comparing strings with string-equal