An Adapter-based Bot Framework for Elixir Applications
handle_disconnect/2
in the robot module. See docs
for details.GenServer
s.user
field on Hedwig.Message
is now a Hedwig.User
struct.
This should aid in consistency across adapters.after_connect/1
is now handle_connect/1
. See the docs for details.Hedwig.Robot.handle_in/2
rather than handle_message
for incoming messages. See the docs for details.Hedwig.Registry
has been removed. Alternatives are outlined in the README.GreatSuccess
and ShipIt
responders have been moved in the examples
directory and no longer shipped with Hedwig.adapter
field has been removed from the Hedwig.Message
struct.GenServer
.Diff: https://github.com/hedwig-im/hedwig/compare/v1.0.0-rc3...v1.0.0-rc.4
Move TestRobot
to lib
Diff: https://github.com/hedwig-im/hedwig/compare/v1.0.0-rc2...v1.0.0-rc3
Move RobotCase
to lib
in order to make testing easier.
Diff: https://github.com/hedwig-im/hedwig/compare/v1.0.0-rc1...v1.0.0-rc2
Hedwig.Stanza.presence/2
Hedwig.Conn
to 30_000
ms.Diff: https://github.com/hedwig-im/hedwig/compare/v0.2.0...v0.3.0
Hedwig.whereis/1
can be used to return the pid
of a client by the jid
:simple_one_for_one
and can be
started/stopped via Hedwig.start_client/1
and Hedwig.stop_client/1
Stanza.set_inband_register/2
Stanza.subscribe/3
config.exs
. Instead you must now manage
starting/stopping clients via Hedwig.start_client/1
and Hedwig.stop_client/1
Release Diff: https://github.com/scrogson/hedwig/compare/v0.1.0...v0.2.0
type
for a presence
stanza is now nil
type
for a message
stanza is now normal
ANONYMOUS
auth mechanism.Stanza.iq/{2,3}
- iq
stanzas can now be sent to a specified jid
.Stanza.get_roster/0
to fetch the client's roster.Stanza.get_vcard/1
to fetch the vcard of a specified jid
.Stanza.disco_info/1
to discover features and capabilities of a server or client.Stanza.disco_items/1
to discover features and capabilities of a server or client.Stanza.presence/1
to allow a client to become unavailable
.JID
now implements String.Chars.to_string/1
protocol.ignore_from_self?
option to allow stanzas to be processed for messages sent by the client. Defaults to false
.{:stop, reason}
and the client will send an unavailable
presence and close the stream.payload
key for access to the raw
parsed data structure.Release Diff: https://github.com/scrogson/hedwig/compare/v0.0.3...v0.1.0