]> Pileus Git - ~andy/rhawk/commitdiff
Add bofh excuses
authorAndy Spencer <andy753421@gmail.com>
Fri, 6 Sep 2013 05:04:05 +0000 (05:04 +0000)
committerAndy Spencer <andy753421@gmail.com>
Fri, 6 Sep 2013 05:01:41 +0000 (05:01 +0000)
rhawk

diff --git a/rhawk b/rhawk
index 713c7995b267806f457b5a142ae3447faa0955fa..a4535b98095724882fde4e26a38af8dd02e95c1c 100755 (executable)
--- a/rhawk
+++ b/rhawk
@@ -202,6 +202,16 @@ TO == NICK && /^\.?fortune/     {
        next
 }
 
+/\<[Bb][Oo][Ff][Hh]\>/ {
+       _cmd = "fortune bofh-excuses"
+       _cmd | getline _fortune
+       _cmd | getline _fortune
+       _cmd | getline _fortune
+       close(_cmd)
+       say(_fortune)
+       next
+}
+
 # Morse code
 BEGIN {
        morse["/"      ] = " "