Skip to content

Instantly share code, notes, and snippets.

@FBosler
Created December 5, 2021 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FBosler/ccce4b325bbfc42280be9bee4ed5bc9b to your computer and use it in GitHub Desktop.
Save FBosler/ccce4b325bbfc42280be9bee4ed5bc9b to your computer and use it in GitHub Desktop.
from monitoring import api, crypto, webpage
from notifications import send_sms, send_email, send_to_slack
def run():
# monitoring - uncomment the one you want to use
msg = api.check_exchange_rate()
# msg = crypto.check_available_mim()
# msg = webpage.find_add_to_cart_button()
# notification - uncomment the one you want to use
if msg:
# send_sms.send_sms(msg=msg)
# send_email.send_email(msg=msg)
send_to_slack.send_to_slack(msg=msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment