summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2019-11-24 10:13:38 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2019-11-27 23:42:52 -0500
commit4196392a286bfb8c35c7d8fb90d5848e45d91114 (patch)
tree06466590c0842abb10d16a2465c2e907679f0a65
parentc0753baf9fb33e9f76104a0ea736ffec2d7107da (diff)
greet "hello" noobs only
-rw-r--r--process_event5
1 files changed, 3 insertions, 2 deletions
diff --git a/process_event b/process_event
index 3e38294..cccf6f7 100644
--- a/process_event
+++ b/process_event
@@ -273,8 +273,9 @@ function process_event
# hello #
#########
- 'Hello' | 'Hello!' | 'Hello?' | 'Hi' | 'Hi!' | \
- 'hello' | 'hello!' | 'hello?' | 'hi' | 'hi!' )
+ [Hh]@('ello'|'i'|'ey')*([[:punct:]]) )
+ [[ ! -f "announcements/people/${personoslashlower}/greeted" ]] && \
+ touch "announcements/people/${personoslashlower}/greeted" && \
send_msg "${channel_it_came_from}" "Hello ${person}! Is something on your mind? Feel free to comment or ask a question at any time. Be patient if no one responds immediately. That is quite normal on the IRC. Many people will read your message when they can, and perhaps reply, if you are still in the channel."
;;