Butler.Adapter behaviour

This module specifies the adapter API for adapters to different chat applications.

Summary

Callbacks

Formats message text correctly for the specific adapter

Sends a message back to a specific user on the same channel that the original message was posted in

Sends a message back to the channel

Called when the adapter is started. Start any other proccesses that are needed for the adapter here

Callbacks

format_response({})

Specs

format_response({:atom, String.t}) :: String.t

Formats message text correctly for the specific adapter

reply(arg0)

Specs

reply(Butler.Response.t) :: :ok

Sends a message back to a specific user on the same channel that the original message was posted in.

say(arg0)

Specs

say(Butler.Respose.t) :: :ok

Sends a message back to the channel.

start_link()

Specs

start_link :: {:ok, term} | :error

Called when the adapter is started. Start any other proccesses that are needed for the adapter here