Go to file
Simon Vieille 1f3dbf92fc fix rss parser; add debug mode 2021-04-23 13:15:11 +02:00
.gitignore init 2019-07-25 09:30:24 +02:00
README.md fix rss parser; add debug mode 2021-04-23 13:15:11 +02:00
config.ini.dist add documentation 2019-07-25 10:03:45 +02:00
index.php fix rss parser; add debug mode 2021-04-23 13:15:11 +02:00

README.md

Mattermost BOT

Read a RSS feed and post items in a mattermost channel.

Installation

$ git clone https://gitnet.fr/deblan/mattermost-bot.git
$ cd mattermost-bot
$ cp config.ini.dist config.ini

Example of config.ini :

debug = false

[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"

Then run php index.php.

You can specify the path of the configuration using the option -c : php index.php -c /path/to/config.ini.