Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- !roseceremony - retrieve the list of current bachelor contestants
- !train [TODO] \<transitsystem\> \<station\> - Lets you know when the next train/bus for <transitsystem> at <station> is coming
- !weather \<location\> - 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!

Expand Down
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand All @@ -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
}
Expand Down
5 changes: 5 additions & 0 deletions modules/ndcalifornia.py
Original file line number Diff line number Diff line change
@@ -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