!echo hello | echo world,1628079188014-263791484
world hello,1628079188014-263791484
!history,1628079193910-1894664892
"greg in greg at 05:12 AM 08/04: !echo hello
myeti in greg at 05:12 AM 08/04: hello
greg in greg at 05:13 AM 08/04: !echo hello | echo world
myeti in greg at 05:13 AM 08/04: world hello",1628079193910-1894664892
src/yetibot/core/handler.clj
(->cmd-param-map)
related to the(record-and-run-raw)
function(add-user-message-to-history)
(handle-parsed-expr)
, also removed redundant binding ofinterp/*chat-source
(add-bot-response-to-history)
(->successfully-handled-expr)
(->unsuccessfully-handled-expr)
(eval-expr-and-record-response)
(record-and-run-raw)
to use newly extracted functions and param objecttest/yetibot/core/test/handler.clj
ran tests using new install and verified commands are being evaluated and recorded
yetibot=# \pset format csv Output format is csv.
yetibot=# SELECT body, correlation_id FROM yetibot_history; body,correlation_id
!echo hello,1628079174632--945183739 hello,1628079174632--945183739
!echo hello | echo world,1628079188014-263791484 world hello,1628079188014-263791484
!history,1628079193910-1894664892 "greg in greg at 05:12 AM 08/04: !echo hello myeti in greg at 05:12 AM 08/04: hello greg in greg at 05:13 AM 08/04: !echo hello | echo world myeti in greg at 05:13 AM 08/04: world hello",1628079193910-1894664892