diff --git a/README.md b/README.md index 32b1937..daf7069 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ - !roseceremony - retrieve the list of current bachelor contestants - !train [TODO] \ \ - Lets you know when the next train/bus for at is coming - !weather \ - Lets you know the weather at redwood, att or menlo +- !instagram - get the NDCalifornia instagram story URL - shortstop keeps track of the calendar and will wish you a happy birthday! diff --git a/app.py b/app.py index 5746acd..3643e4a 100755 --- a/app.py +++ b/app.py @@ -19,6 +19,7 @@ from modules.sign_in import sign_in_handler from modules.usage import usage_handler from modules.weather import weather_handler +from modules.ndcalifornia import instagram_handler # Globs app = Flask(__name__) @@ -39,9 +40,11 @@ def call_handler(sender, message, bot_id, app_id): '!calendar': daily_cal_handler, '!detain': detain_handler, '!dierre': dierre_pic_handler, + '!instagram': instagram_handler, + '!ndcalifornia': instagram_handler, + '!roseceremony': bachelor_handler, '!door': door_handler, '!party': party_handler, - '!roseceremony': bachelor_handler, '!usage': usage_handler, '!weather': weather_handler } diff --git a/modules/ndcalifornia.py b/modules/ndcalifornia.py new file mode 100644 index 0000000..8647cd3 --- /dev/null +++ b/modules/ndcalifornia.py @@ -0,0 +1,5 @@ +def instagram_handler(sender, message, bot_id, app_id): + """Return NDCalifornia instagram story""" + if '!ndcalifornia' in message or '!instagram' in message: + return "https://www.instagram.com/stories/notredamecalifornia" + return None \ No newline at end of file