summaryrefslogtreecommitdiff
path: root/controllers/interfaces
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-11-19 16:43:41 -0300
committericebaker <icebaker@proton.me>2023-11-19 16:43:41 -0300
commit154aa68caf50a18af5c0dff1d368fc639314e0ba (patch)
treeb2ab75665e42de79f22cca82bf03cfc49759f485 /controllers/interfaces
parente89a1d57c49c94c16c37a8ee3a69b52a9e2b341b (diff)
improving tools parameters
Diffstat (limited to 'controllers/interfaces')
-rw-r--r--controllers/interfaces/tools.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/controllers/interfaces/tools.rb b/controllers/interfaces/tools.rb
index aa4fb61..f079a2b 100644
--- a/controllers/interfaces/tools.rb
+++ b/controllers/interfaces/tools.rb
@@ -65,9 +65,9 @@ module NanoBot
if %i[fennel lua clojure].any? { |key| !adapter[key].nil? }
message = adapt(feedback, adapter, cartridge)
else
- message = "(#{feedback[:name]} #{feedback[:parameters].to_json})"
+ message = "#{feedback[:name]} #{feedback[:parameters].to_json}"
- message += " =>\n#{feedback[:output]}" if feedback[:action].to_sym == :responding
+ message += "\n#{feedback[:output]}" if feedback[:action].to_sym == :responding
end
message = "#{adapter[:prefix]}#{message}#{adapter[:suffix]}"