aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorquiliro <quiliro@riseup.net>2020-10-06 20:18:07 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-10-06 21:22:46 -0400
commit8987197a30eca90b2a3ae910a3dd4160376bc722 (patch)
tree05a8fa687795aa94da2d50f54cc5f2d6c00a700c
parent55cd3ec4a964b69775c2d570004b099986604fff (diff)
downloadhyperbot-8987197a30eca90b2a3ae910a3dd4160376bc722.tar.lz
hyperbot-8987197a30eca90b2a3ae910a3dd4160376bc722.tar.xz
hyperbot-8987197a30eca90b2a3ae910a3dd4160376bc722.zip
Add what is functionality to also list factoids
-rw-r--r--process_event6
1 files changed, 6 insertions, 0 deletions
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 #
#############