|
@@ -84,6 +84,7 @@
|
|
|
(:weather (handle-cmd-weather chat-id id args))
|
|
(:weather (handle-cmd-weather chat-id id args))
|
|
|
(:hourly (handle-cmd-weather chat-id id '("hourly")))
|
|
(:hourly (handle-cmd-weather chat-id id '("hourly")))
|
|
|
(:daily (handle-cmd-weather chat-id id '("daily")))
|
|
(:daily (handle-cmd-weather chat-id id '("daily")))
|
|
|
|
|
+ (:rates (handle-cmd-rates chat-id id args))
|
|
|
(:help (handle-cmd-help chat-id id args))
|
|
(:help (handle-cmd-help chat-id id args))
|
|
|
(otherwise (handle-admin-cmd chat-id text cmd args))))
|
|
(otherwise (handle-admin-cmd chat-id text cmd args))))
|
|
|
(send-dont-understand chat-id text)))
|
|
(send-dont-understand chat-id text)))
|
|
@@ -208,6 +209,11 @@
|
|
|
(log:info "handle-cmd-help" chat-id message-id args)
|
|
(log:info "handle-cmd-help" chat-id message-id args)
|
|
|
(telegram-send-message chat-id (random-choice *help-responses*)))
|
|
(telegram-send-message chat-id (random-choice *help-responses*)))
|
|
|
|
|
|
|
|
|
|
+(defun handle-cmd-rates (chat-id message-id args)
|
|
|
|
|
+ (log:info "handle-cmd-rates" chat-id message-id args)
|
|
|
|
|
+ (let (rates (get-rates))
|
|
|
|
|
+ (telegram-send-message chat-id
|
|
|
|
|
+ (format nil "Зеленый ~A, гейро ~A" (cdar rates) (cdadr rates)))))
|
|
|
|
|
|
|
|
(defun handle-cmd-weather (chat-id message-id args)
|
|
(defun handle-cmd-weather (chat-id message-id args)
|
|
|
(log:info "handle-cmd-weather" chat-id message-id args)
|
|
(log:info "handle-cmd-weather" chat-id message-id args)
|