~edwargix/msc-link-bot

6cc9924a8fe7d3f1d551df9628011bb87748e90e — David Florness 3 years ago 9a314ce
Add simple "Usage" section to README
2 files changed, 19 insertions(+), 2 deletions(-)

A Makefile
M README.md
A Makefile => Makefile +2 -0
@@ 0,0 1,2 @@
msc-link-bot: go.mod go.sum *.go
	go build -o $@

M README.md => README.md +17 -2
@@ 1,4 1,19 @@
# msc-link-bot

This is re-write of @msclinkbot:matrix.org in golang with support for encrypted
rooms with the help of <https://maunium.net/go/mautrix>.
This is re-write of `@msclinkbot:matrix.org` in golang with support for
encrypted rooms with the help of <https://maunium.net/go/mautrix>.

# Usage

```sh
# will create ./msc-link-bot
make

export HOMESERVER=https://matrix.example.org
export USER_ID=@msclinkbot:example.org
export DEVICE_ID=FWQXHAAVLA
export ACCESS_TOKEN=<super_secret_access_token>

# crypto keys will be stored in ./crypto.db
./msc-link-bot
```