Skip to content

Slack Image Bot for searching and posting image's url into slack channel

License

Notifications You must be signed in to change notification settings

ottaviano/slack-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack Image Bot

Description

The bot uses a list of URLs for retrieving just one and tries to extract the image's URL from response's body for sending it in slack channel. The list of URLs is defined in app/config/parameters.yml. The tag <meta property="og:image"> is searched in the HTTP response and the value of content attribute is extracted.

Installation

git clone [email protected]:ottaviano/slack-bot.git
cd slack-bot
composer install

Configuration

cp ./app/config/parameters.yml.dist ./app/config/parameters.yml
vim ./app/config/parameters.yml
  • Fill the list of URLs
  • Fill the slack configuration: token & channelId

Launch

php script.php

About

Slack Image Bot for searching and posting image's url into slack channel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages