From 8987197a30eca90b2a3ae910a3dd4160376bc722 Mon Sep 17 00:00:00 2001 From: quiliro Date: Tue, 6 Oct 2020 20:18:07 -0500 Subject: [PATCH] Add what is functionality to also list factoids --- process_event | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/process_event b/process_event index 8014092..9c15651 100644 --- a/process_event +++ b/process_event @@ -372,6 +372,12 @@ function process_event tell_fact "${thing}" "${channel_it_came_from}" ;; + "${my_own_name}: what is "+([![:space:]]) ) + thing="${sentence#${my_own_name}: what is }" + + tell_fact "${thing}" "${channel_it_came_from}" + ;; + ############# # Footnotes # #############