git.fiddlerwoaroof.com
Browse code

add main, rearrange stuff

Ed L authored on 04/03/2019 08:52:41
Showing 1 changed files
... ...
@@ -1,5 +1,10 @@
1 1
 (defpackage :hhgbot-2
2 2
   (:use :cl :alexandria :serapeum :slacker :fw.lu))
3
+
4
+(defpackage :quote-server
5
+  (:use :cl :ningle :araneus :serapeum :alexandria :fw.lu)
6
+   (:export #:start))
7
+
3 8
 (cl:in-package :hhgbot-2)
4 9
 
5 10
 ;; Special Variables
... ...
@@ -248,8 +253,12 @@ Return a string with the generated JSON output."
248 253
            (with-input-from-file (s filename :external-format :utf-8)
249 254
              (read-refs s))))
250 255
 
251
-(defpackage :quote-server
252
-  (:use :cl :ningle :araneus :serapeum :alexandria :fw.lu))
256
+(defun main ()
257
+  (initialize-quotes)
258
+  (quote-server:start)
259
+  (setf (values *client* slacker::*api-token*)
260
+	(start-in-repl)))
261
+
253 262
 (in-package :quote-server)
254 263
 
255 264
 (defparameter *app* (make-instance '<app>))