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
10 months ago
.gitignore init 10 months ago
README.md add documentation 10 months ago
config.ini.dist add documentation 10 months ago
index.php add option -c 10 months 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.