def main(): # controls who the information will be sent to based on command line args message = execution_ctrl_message() to_send = execution_ctrl_to_send() # sends an email to specified recipients containing a list # of good NBA matchups send_info = core.load_private_info() send_email(send_info["Email"], to_send, "NBA Daily", message, send_info["Email"], send_info["Password"])
def execution_ctrl_to_send(): arg = str(sys.argv[2]) info_list = core.load_private_info() if arg == "me": return info_list["Email"] elif arg == "recipients": return info_list["Recipients"] else: return