Hedwig v1.0.0 Hedwig.Adapter behaviour

Hedwig Adapter Behaviour

An adapter is the interface to the service your bot runs on. To implement an adapter you will need to translate messages from the service to the Hedwig.Message struct and call Hedwig.Robot.handle_message(robot, msg).

Summary

Types

opts()
opts :: any
robot()
robot :: pid
state()
state :: term

Callbacks

emote(pid, msg)
emote(pid, msg) :: term
reply(pid, msg)
reply(pid, msg) :: term
send(pid, msg)
send(pid, msg) :: term