Skip to content

Bot that can scrape the Flavor of the Day from a given Culver's location page and post it to Slack

Notifications You must be signed in to change notification settings

fantashley/culvers-slack-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

culvers-slack-bot

This bot scrapes the Flavor of the Day from the Culver's website for a given location and posts it to a Slack channel.

Input

slack_token - Your "Bot User OAuth Access Token" from api.slack.com

channel - Channel within your workspace in which to post the Flavor of the Day

location - Culver's location to get the Flavor of the Day for. This will match the last portion of the FotD URL: https://www.culvers.com/restaurants/**golden-valley-mn-7th-ave**

Usage Example

from culversbot import CulversSlackBot

slack_token = os.environ['SLACK_API_TOKEN']
bot = CulversSlackBot(slack_token, "culvers", "golden-valley-mn-7th-ave")
bot.send_fotd()

Docker Example

docker build -t culversbot .
docker run --rm -e "CULVERS_LOCATION=golden-valley-mn-7th-ave" -e "SLACK_CHANNEL=culvers" -e "SLACK_API_TOKEN=xoxb-YOUR-KEY-HERE" culversbot

About

Bot that can scrape the Flavor of the Day from a given Culver's location page and post it to Slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published