Random Quote Bot for Slack
Simple usage of the Slack API to post a random quote to a specific channel. Feel free to fork and add own RandomQuote classes.
- Create a new Concret Quote here -> RandomQuoteBot\RandomQuote
bin/console quote:send-random-quote-to-slack <configName> <channelName> [<randomQuoteClassName with dashes>]
if there is no random quote class given it will use the providers option from the config and select a random quote provider
- create a class
RandomQuoteBot\RandomQuote\MyQuoteRandomQuote
that extends the AbstractRandomQuote - call it like this
bin/console quote:send-random-quote-to-slack main my-quote it-channel
- add it as provider in config/main.yml