Skip to content

Commit

Permalink
Fixed imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Dec 7, 2024
1 parent 2dc346e commit 73feeeb
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 29 deletions.
1 change: 0 additions & 1 deletion cl-telegram-bot2-deps.asd

This file was deleted.

1 change: 1 addition & 0 deletions cl-telegram-bot2.asd
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
(asdf:register-system-packages "utilities.print-items" '("PRINT-ITEMS"))
(asdf:register-system-packages "dexador" '("DEX"))
(asdf:register-system-packages "sento" '("SENTO.ACTOR-SYSTEM"
"SENTO.ACTOR-CONTEXT"
"SENTO.ACTOR"))
5 changes: 3 additions & 2 deletions v2/bot.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
#:required-argument
#:once-only)
(:import-from #:sento.actor-system)
(:import-from #:sento.actor-context)
(:import-from #:cl-telegram-bot2/api)
(:import-from #:cl-telegram-bot2/vars
#:*current-bot*)
(:import-from #:cl-telegram-bot2/states/base
#:base-state)
(:export
#:defbot))
(:export #:defbot))
(in-package #:cl-telegram-bot2/bot)


Expand Down
18 changes: 0 additions & 18 deletions v2/high.lisp
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
(uiop:define-package #:cl-telegram-bot2/high
(:use #:cl)
(:import-from #:serapeum
#:defvar-unbound)
(:import-from #:cl-telegram-bot2/api
#:send-photo
#:message-chat
#:update-message
#:update
#:chat-id
#:send-message)
(:import-from #:cl-telegram-bot2/generics
#:process)
(:import-from #:cl-telegram-bot2/vars
#:*current-chat*)
(:import-from #:lambda-fiddle
Expand Down Expand Up @@ -86,17 +82,3 @@
(push message *collected-messages*))
(values message)))


;; (defun reply (text &rest rest &key #.*args*)
;; (let ((chat-id (chat-id *current-chat*)))
;; (apply #'send-message
;; chat-id
;; text
;; rest))
;; ;; (values)
;; )


;; (defmethod process :around ((state chat-state) (update update))
;; (let*
;; (call-next-method)))
9 changes: 3 additions & 6 deletions v2/pipeline.lisp
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
(uiop:define-package #:cl-telegram-bot2/pipeline
(:use #:cl)
(:import-from #:log4cl)
(:import-from #:log)
(:import-from #:cl-telegram-bot2/api)
(:import-from #:cl-telegram-bot2/bot
#:initial-state-class
#:api-uri
#:token
#:get-last-update-id
#:bot)
(:import-from #:anaphora
#:it
#:acond)
(:import-from #:cl-telegram-bot2/vars
#:*current-state*
#:*current-bot*
Expand All @@ -26,12 +24,11 @@
#:fmt)
(:import-from #:sento.actor
#:*state*)
(:import-from #:sento.actor-context)
(:import-from #:cl-telegram-bot2/vars
#:*current-chat*)
(:import-from #:closer-mop
#:slot-definition-type)
(:import-from #:alexandria
#:required-argument)
(:import-from #:cl-telegram-bot2/states/base
#:state-id
#:base-state)
Expand Down
2 changes: 1 addition & 1 deletion v2/server.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(:import-from #:bordeaux-threads
#:make-thread
#:destroy-thread)
(:import-from #:log4cl)
(:import-from #:log)
;; (:import-from #:cl-telegram-bot/update
;; #:process-updates)
;; (:import-from #:cl-telegram-bot/response
Expand Down
1 change: 0 additions & 1 deletion v2/spec.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#:curry
#:make-keyword
#:hash-table-alist)
(:import-from #:cl-telegram-bot2/deps)
(:import-from #:njson
#:jget)
(:import-from #:cl-json
Expand Down

0 comments on commit 73feeeb

Please sign in to comment.