summaryrefslogtreecommitdiff
path: root/src/main.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.lisp')
-rw-r--r--src/main.lisp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main.lisp b/src/main.lisp
index 9dfdc85..2e01411 100644
--- a/src/main.lisp
+++ b/src/main.lisp
@@ -9,7 +9,7 @@
9 (:import-from :ukkoclot/db :with-db) 9 (:import-from :ukkoclot/db :with-db)
10 (:import-from :ukkoclot/serializing :fixup-value) 10 (:import-from :ukkoclot/serializing :fixup-value)
11 (:import-from :ukkoclot/state :make-bot :bot-config :bot-power-on) 11 (:import-from :ukkoclot/state :make-bot :bot-config :bot-power-on)
12 (:import-from :ukkoclot/strings :escape-xml :is-tg-whitespace-str :starts-with :starts-with-ignore-case) 12 (:import-from :ukkoclot/strings :escape-xml :is-tg-whitespace :is-tg-whitespace-str :starts-with :starts-with-ignore-case)
13 (:local-nicknames 13 (:local-nicknames
14 (:jzon :com.inuoe.jzon)) 14 (:jzon :com.inuoe.jzon))
15 (:export :main)) 15 (:export :main))
@@ -200,6 +200,16 @@
200 (unless (is-tg-whitespace-str the-text) 200 (unless (is-tg-whitespace-str the-text)
201 (reply-message bot msg the-text)))) 201 (reply-message bot msg the-text))))
202 202
203 ((starts-with-ignore-case text "tiny ")
204 (let ((the-text (subseq text 5)))
205 (unless (is-tg-whitespace-str the-text)
206 (reply-message bot msg
207 (map 'string #'(lambda (ch)
208 (if (is-tg-whitespace ch)
209 ch
210 #\.))
211 the-text)))))
212
203 ((string-equal text "uwu") 213 ((string-equal text "uwu")
204 (reply-message bot msg "OwO")) 214 (reply-message bot msg "OwO"))
205 215