alice v0.4.3 Alice.ChatBackends.OutboundSpy

A Spy to capture messages sent to the OutboundClient during testing.

Link to this section Summary

Functions

Sends a message indicating typing back to the process so it can be retrieved later during the test

Sends the message back to the process so it can be retrieved later during the test

Link to this section Functions

Link to this function

indicate_typing(channel, slack)

indicate_typing(channel :: String.t(), slack :: map()) :: String.t()

Sends a message indicating typing back to the process so it can be retrieved later during the test

Link to this function

send_message(response, channel, slack)

send_message(message :: String.t(), channel :: String.t(), slack :: map()) ::
  String.t()

Sends the message back to the process so it can be retrieved later during the test