Documentation
¶
Overview ¶
Package matrix provides a lightning.Plugin implementation for Matrix. To use Matrix support with lightning, see New
bot := lightning.NewBot(...)
bot.AddPluginType("matrix", matrix.New)
bot.UsePluginType("matrix", "matrix", map[string]string{
// ...
})
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New creates a new lightning.Plugin that provides Matrix support for Lightning
It only takes in a map with the following structure:
map[string]string{
"access_token": "", // a string with your Matrix bot token, sets up a bot using MSC4144 if specified
"as_token": "", // a string with the random token your appservice will use
"as_local": "", // a string with the localpart your appservice will use
"hs_token": "", // a string with the random token your homeserver will use
"homeserver": "", // a string with your Matrix homeserver URL (always required)
"proxy_host": "", // a string with your proxy host for files (required unless using the bridge)
"mxid": "", // a string with your Matrix bot ID
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.