# -*- shell-script -*- ############################################################################### # PREDEFINED ANSWERS ########################################################## ############################################################################### PING :: random 'pong' KONNICHI WA :: random 'genki desu ka' 'guai wa dou desu ka' (WESH|YO|SALUT) >> BONJOUR BONJOUR :: random 'salut' 'bonjour' ((HI|LO)( .+)?) >> HELLO HELLO :: random 'hi' 'lo' 'hello' 'yo' (BYE|SEE YOU|CIAO|AU\ REVOIR|TCHO)(.*) >> GOODBYE GOODBYE :: random 'bye' 'see you' 'goodbye' WHAT\s+ARE\s+YOU\s+DOING\s?\? :: random 'helping my master out' CA\ VA(.*)\? :: random 'ca va, et toi?' 'ouais pas mal, et toi?' HOW\ ARE\ (YOU|U)\? :: random 'fine thanks, and you?' 'feeling good, thanks.' 'not bad.' MY\sNAME\sIS\s(.*) :: random 'hello' '\1' ', nice name' (MON\sNOM\sEST|JE\sM\sAPPELLE)\s(.*) :: random 'bonjour' '\2' ALEA\s+JACTA\s+EST :: random 'so be it !' (MERCI|SUMIMASEN|THANK\s+YOU|THANKS) :: random 'you are welcome' INTRODUCE\s+YOURSELF\s*(\!|\.)? :: random 'Hello, my name is ${BOTNAME}. I\'m ${MYUSER}\'s Narval.'