# -*- shell-script -*-
###############################################################################


# ENTERTAINMENT ###############################################################

# film
FILM:\s+(.*) :: command 'search_film' '\1'
ALLOCINE:\s(.*) :: command 'search_film' 'allocine' '\1'
IMDB:\s(.*) :: command 'search_film' 'imdb' '\1'
(\d{5}) :: command 'enter_postcode' '\1'
SELECT\s+(\d+) :: command 'select_film' '\1'
WHAT\'S\s+ON\s+TONIGHT\s*\? :: command 'film_tonight'
INIT\s+XMLTV :: command 'init_xmltv'


# ACTIVITY REPORTS ############################################################

([+-]?\d/\d)\s+(.+) :: command 'activity_notify' '\1' '\2'
([+-]?\d([.,]\d\d?)?|[+-]?[.,]\d\d?)\s+(.+) :: command 'activity_notify' '\1' '\3'

WHAT ARE MY ACTIVITIES( SO FAR)?\? >> ACTIVITIES
PRINT MY ACTIVITY REPORT >> ACTIVITIES
ACTIVITIES :: command 'activity_report'

RESET CURRENT ACTIVITY( REPORT)? >> FLUSH
(DELETE)|(FLUSH)( ALL)? ACTIVITIES >> FLUSH
FLUSH :: command 'activity_flush'

(\w+) ACTIVITY REPORT FOR (\w+)\s+\-+\s+(.*) :: command 'activity_receive_report' '\1' '\2' '\3'

# OTHER #######################################################################

# macros
(START|STOP)\s+MACRO :: command 'macro' '\1'

# date command
MEETING >> DATE
DATE (.*) :: command 'date' '\1'

# added contact
#(.*)(CALL|CONTACT)(.*) :: random 'future: add above contact' 
# identify time
#(.*)(\d{2}:\d{2}|O.CLOCK)(.*) :: random '*time*' 'time'

# identify date
#(.*)(\d{2}[\/-](JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC|\d{2})[\/-]\d{2})(.*) :: random 'this is a date' 'there is a date'
#(.*)\d{2}(RD|ST)(.*) :: random 'there is a reference to a date'

# probably reply from another agent
DON\'T\s+KNOW\s+WHAT\s+TO\s+DO.* :: ignore
\w+: YOU DON\'T HAVE ACCESS TO THE \w+ COMMAND.* :: ignore


###############################################################################
