XMPP bot in Elixir
If available in Hex, the package can be installed as:
-
Add erobot to your list of dependencies in
mix.exs
:def deps do [{:erobot, "~> 0.0.1"}] end
-
Ensure erobot is started before your application:
def application do [applications: [:erobot]] end
Compile with mix
, then run with eix -S mix
Connect to room with Erobot.Controller.connect options
Send message with
Erobot.Controller.connected |> Map.keys |> hd |> Erobot.Worker.message "yo!"