#NEWLINE# def _set_recurring_reminder( r , orig_message ) : #NEWLINE# #INDENT# '\n        Set Recurring Reminder\n\n        Record a recurring reminder in the database to be sent.\n\n        #TODO: Implement this\n\n        --\n        @param  r:dict              The parsed message from the user\n        @param  orig_message:str    The original message received\n\n        @return str\n    ' #NEWLINE# logger . debug ( 'Storing reminder for {id}' . format ( id = orig_message [ 'chat' ] [ 'id' ] ) ) #NEWLINE# RemindRecurring . create ( orig_message = json . dumps ( orig_message ) , rrules = r [ 'parsed_time' ] , next_run = rrulestr ( r [ 'parsed_time' ] , dtstart = datetime . datetime . now ( ) ) . after ( datetime . datetime . now ( ) ) , message = r [ 'message' ] ) #NEWLINE# return