diff options
| author | 2025-10-18 03:06:09 +0300 | |
|---|---|---|
| committer | 2025-10-18 03:53:48 +0300 | |
| commit | ec7de1aa1ad2bc14b3b1572ea4cc5024a6c662ae (patch) | |
| tree | 5dcc03e76b14f1bb522f16ea98e975a7ef5bbb88 /src/inline-bots.lisp | |
| parent | Add "tiny ..." trigger (diff) | |
| download | ukkoclot-ec7de1aa1ad2bc14b3b1572ea4cc5024a6c662ae.tar.gz ukkoclot-ec7de1aa1ad2bc14b3b1572ea4cc5024a6c662ae.tar.xz ukkoclot-ec7de1aa1ad2bc14b3b1572ea4cc5024a6c662ae.zip | |
Add ocicl lint
Diffstat (limited to 'src/inline-bots.lisp')
| -rw-r--r-- | src/inline-bots.lisp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/inline-bots.lisp b/src/inline-bots.lisp index caf210a..94ed478 100644 --- a/src/inline-bots.lisp +++ b/src/inline-bots.lisp | |||
| @@ -17,14 +17,13 @@ | |||
| 17 | 17 | ||
| 18 | (defun on-inline-bot (bot msg via) | 18 | (defun on-inline-bot (bot msg via) |
| 19 | (let ((ty (db:get-inline-bot-type (bot-db bot) (user-id via)))) | 19 | (let ((ty (db:get-inline-bot-type (bot-db bot) (user-id via)))) |
| 20 | (if (eq ty :whitelisted) | 20 | (or (eql ty :whitelisted) |
| 21 | t | 21 | (prog1 nil |
| 22 | (progn | ||
| 23 | (log:info "Deleting an unallowed inline bot message from ~A ~A" | 22 | (log:info "Deleting an unallowed inline bot message from ~A ~A" |
| 24 | (user-username via) | 23 | (user-username via) |
| 25 | (user-id via)) | 24 | (user-id via)) |
| 26 | (try-delete-message bot msg) | 25 | (try-delete-message bot msg) |
| 27 | (unless (eq ty :blacklisted) | 26 | (unless (eql ty :blacklisted) |
| 28 | ;; Not explicitly blacklisted, notify dev group | 27 | ;; Not explicitly blacklisted, notify dev group |
| 29 | (let ((whitelist (make-inline-keyboard-button :text "Whitelist" | 28 | (let ((whitelist (make-inline-keyboard-button :text "Whitelist" |
| 30 | :callback-data (format nil "bwl:~A" (user-id via)))) | 29 | :callback-data (format nil "bwl:~A" (user-id via)))) |
| @@ -38,5 +37,6 @@ | |||
| 38 | :parse-mode html | 37 | :parse-mode html |
| 39 | :reply-markup (make-inline-keyboard-markup | 38 | :reply-markup (make-inline-keyboard-markup |
| 40 | :inline-keyboard | 39 | :inline-keyboard |
| 41 | (make-array '(1 2) :initial-contents (list (list whitelist blacklist))))))) | 40 | (make-array '(1 2) |
| 42 | nil)))) | 41 | :initial-contents |
| 42 | (list (list whitelist blacklist))))))))))) | ||