agala v2.0.0 Agala.Chain.Loopback
Loopback automaticly sends response back to the bot, which got the request
You can use this Chain in pipeline in order to simplify resolving name of the bot, that should response with your connections.
Example:
defmodule SimpleHandler
chain Agala.Chain.Loopback
chain :handle
def handle(conn, _opts) do
# Here, responser already the same, as receiver
assert conn.responser_name == conn.request_bot_params.name
end
end