mattermost-bot/README.md

30 lines
607 B
Markdown
Raw Normal View History

2019-07-25 10:03:45 +02:00
Mattermost BOT
==============
Read a RSS feed and post items in a mattermost channel.
Installation
------------
```bash
$ git clone https://gitnet.fr/deblan/mattermost-bot.git
$ cd mattermost-bot
$ cp config.ini.dist config.ini
```
### Example of `config.ini`
```ini
[feed]
url = "https://www.example.com/feed/"
[cache]
file = 'cache.db'
[mattermost]
hook_url = "https://mattermost.example.com/hooks/1234567890abcdefghijklm"
message_template = "« %1$s » %2$s #foo #bar"
```
2019-07-25 10:48:38 +02:00
Then run `php index.php`. You can specify the path of the configuration file using `php index.php -c /path/to/config.ini`;