Slack bot that goes out and reads data from external page then posts? -
i have external website has dynamic data on refreshes regularly. i'd set slack bot reaches out site (maybe curl or screen scraping) , return first line of data message in channel.
i browsed integrations , haven't found fits bill quite yet. don't have control on external site put send slack button on it.
thanks!
assuming curl/scraping part works intended, should have no specific issue. when user types either slash command or bot keyword, can perform scraping server then:
- if slash command, use delayed response (you have 30min respond, see documentation https://api.slack.com/slash-commands#responding_to_a_command)
- if request came bot, post text in channel standard message
it if shared more details framework use or share code
Comments
Post a Comment