Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
and this project adheres to Semantic
Versioning.
[0.2.0] - 2019-07-16
Added
The Matrix::Bot::Plugin base class has been given a handle-invite method.
This method receives room invitation events. If the method returns True,
the room will be joined.
The Matrix::Bot::Plugin base class has been given a log method. This
method can be used to access a LogP6 logger object with the correct
trait. The trait is currently the full class name of the plugin, but this
may change at a later point in time.
Related links:
The Matrix::Bot::Plugin base class has been given a handle-connect
method. This method gets called exactly once, after the first synchronization
call with the server. This method being called indicates the connection has
been set up correctly, and the bot can start responding to events that happen
on Matrix.
The Matrix::Bot object now has an additional method to send Markdown
formatted text to a room, send-markdown. This convenience method allows one
to simply return a Markdown formatted string, and the framework will handle
the rendering.
Related links:
Changed
The handle-room-text method now sends m.notice type messages. The Matrix
spec encourages this type to be used for responses from automated clients,
and such clients are the main user of this module.
Related links:
Special thanks to:
handle-room-text no longer receives a Matrix::Client instance, but
instead receives a Matrix::Bot instance, stored in $e.bot. The
Matrix::Client is still available in the Matrix::Bot instance. This
change is intended to provide more power to the event handling methods of a
plugin.
handle-room-text now uses Text::Markdown to support markup in text.
Related links:
Special thanks to:
[0.1.0] - 2019-07-15