diff options
author | quiliro <quiliro@riseup.net> | 2020-10-06 20:18:07 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-10-06 21:22:46 -0400 |
commit | 8987197a30eca90b2a3ae910a3dd4160376bc722 (patch) | |
tree | 05a8fa687795aa94da2d50f54cc5f2d6c00a700c | |
parent | 55cd3ec4a964b69775c2d570004b099986604fff (diff) | |
download | hyperbot-8987197a30eca90b2a3ae910a3dd4160376bc722.tar.lz hyperbot-8987197a30eca90b2a3ae910a3dd4160376bc722.tar.xz hyperbot-8987197a30eca90b2a3ae910a3dd4160376bc722.zip |
Add what is functionality to also list factoids
-rw-r--r-- | process_event | 6 |
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 # ############# |