You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Simon Vieille cb47510829
add documentation
3 weeks ago
.gitignore init 3 weeks ago
README.md add documentation 3 weeks ago
config.ini.dist add documentation 3 weeks ago
index.php add option -c 3 weeks ago

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 :

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