summaryrefslogtreecommitdiff
path: root/README.org
blob: c230c53d3ae6ce1fb21589bbf5a398fae09b0dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

To test:

1. clone this repo and granolin into your =~/quicklisp/local-projects= directory. For example:

#+BEGIN_SRC bash

cd ~/quicklisp/local-projects 
git clone https://github.com/cbeo/posterbot posterbot 
git clone https://github.com/cbeo/granolin granolin
cd granolin
git checkout origin/develop

#+END_SRC

2. fire up lisp and load the posterbot system, make a new instance, log in, and start

#+BEGIN_SRC lisp 

(ql:quickload :posterbot)

(in-package :posterbot)

(let ((bot (make-instance 'posterbot 
                          :ssl nil 
                          :user-id "mybotaccount" 
                          :homeserver "localhost:8008")))
  (login bot "mybotaccount" "mypassword")
  (start bot))

#+END_SRC

3. Invite the bot to a room, it should automatically accept your invitation.

4. Post a link to an image.  The link should end in one of =.gif=, =.jpg=, =.bmp=, =.jpeg=, or =.png=.