Skip to content

Commit

Permalink
Add result/data to echo
Browse files Browse the repository at this point in the history
  • Loading branch information
devth committed Aug 4, 2024
1 parent 6bb40c2 commit 97140ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/yetibot/core/commands/echo.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"echo <text> # Echos back <text> as a string. Useful for piping."
{:yb/cat #{:util}}
[{:keys [args] :as cmd-args}]
(str args))
{:result/value (str args)
:result/data cmd-args})

(cmd-hook #"echo"
_ echo-cmd)

0 comments on commit 97140ec

Please sign in to comment.