diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-03-06 13:03:20 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-03-06 13:03:20 +0100 |
commit | abb8a9b2b9867766513cdb6050218bc09b2da4b3 (patch) | |
tree | a4ac1778a9f4fc09cc341245b140f4fe8e7e19d7 | |
parent | 15e573150547f956956b7c58c752e31184253fbd (diff) | |
download | ezau-abb8a9b2b9867766513cdb6050218bc09b2da4b3.tar.gz ezau-abb8a9b2b9867766513cdb6050218bc09b2da4b3.tar.bz2 ezau-abb8a9b2b9867766513cdb6050218bc09b2da4b3.zip |
update README
-rw-r--r-- | README.md | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -30,6 +30,22 @@ To do that, add the following to `Cargo.toml`: lto = true ``` +Optional Features +----------------- + +The Discord and Matrix functions pull some further dependencies, which are not needed for a basic usage. +Therefore, those features are optional and must be enabled by hand if you wish to use either the Discord integration or the Matrix integration! +To do so, simply adjust your cargo command by adding `--features`: + +```sh +# Discord +cargo build --release --features "im-discord" +# Matrix +cargo build --release --features "im-matrix" +# Both +cargo build --release --features "im-matrix im-discord" +``` + Configuration ------------- @@ -78,6 +94,28 @@ auth_token = "foobar" # Channel ID of the channel to which the message should be posted. # (mandatory) channel_id = 123 + +# Matrix messaging section. +# Seee Discord notes. +# (optional) +[matrix] +# Matrix homeserver for the user +# (mandatory) +homeserver = "https://awesome-matrix-server.org" +# Matrix username +# (mandatory) +username = "foobar" +# Matrix password +# (mandatory) +password = "secret-foo" +# Device ID +# If not given, a new one will be created - it is advised though to supply it +# after the first connection. +# (optional) +device_id = "ASDFGH" +# Room ID to which the message should be posted +# (mandatory) +room_id = "!room123456:homeserver.org" ``` Usage |