Changed README [markdown-lint].

This commit is contained in:
Martin Dosch 2018-07-15 12:23:11 +02:00
parent 6b21b9b749
commit ec9a4da775

View file

@ -1,3 +1,5 @@
# feed-to-muc
## about ## about
*feed-to-muc* is a XMPP which queries Atom or RSS newsfeeds and *feed-to-muc* is a XMPP which queries Atom or RSS newsfeeds and
@ -6,9 +8,10 @@ posts the short summary to a XMPP MUC if there is a new article.
## disclaimer ## disclaimer
I am no programmer and this bot is a result of a lot of *try and error*. I am no programmer and this bot is a result of a lot of *try and error*.
There are probably lots of quirks that are remains of some wrong paths There are probably lots of quirks that are remains of some wrong paths
I went in between. Also a lot is probably solved in a *hacky way* due I went in between. Also a lot is probably solved in a *hacky way* due
to missing experience. to missing experience.
Anyway, it works (for me at least) and so I upload this here. Anyway, it works (for me at least) and so I upload this here.
Recommendations about what can be done better improved and so on are Recommendations about what can be done better improved and so on are
very welcome. very welcome.
@ -19,10 +22,10 @@ very welcome.
## installation ## installation
If you have *[GOPATH](https://github.com/golang/go/wiki/SettingGOPATH)* If you have *[GOPATH](https://github.com/golang/go/wiki/SettingGOPATH)*
set just run this commands: set just run this commands:
``` ```bash
$ go get salsa.debian.org/mdosch-guest/feed-to-muc $ go get salsa.debian.org/mdosch-guest/feed-to-muc
$ go install salsa.debian.org/mdosch-guest/feed-to-muc $ go install salsa.debian.org/mdosch-guest/feed-to-muc
``` ```
@ -31,10 +34,10 @@ You will find the binary in `$GOPATH/bin` or, if set, `$GOBIN`.
## configuration ## configuration
If the flag `-config` is not used tthe configuration expected at If the flag `-config` is not used tthe configuration expected at
`$HOME/.config/feed-to-muc/config.json` in this format: `$HOME/.config/feed-to-muc/config.json` in this format:
``` ```json
{ {
"ServerAddress": "example.com:5222", "ServerAddress": "example.com:5222",
"BotJid": "feedbot@example.com", "BotJid": "feedbot@example.com",
@ -42,7 +45,7 @@ If the flag `-config` is not used tthe configuration expected at
"Muc": "muc-to-feed@conference.example.com", "Muc": "muc-to-feed@conference.example.com",
"MucNick": "feedbot", "MucNick": "feedbot",
"MaxArticles": 5, "MaxArticles": 5,
"Feeds": [ "https://www.debian.org/News/news", "Feeds": [ "https://www.debian.org/News/news",
"https://www.debian.org/security/dsa-long" ] "https://www.debian.org/security/dsa-long" ]
} }
``` ```