瀏覽代碼

dictionary: Add a way to see all chatty responses

Will Storey 8 年之前
父節點
當前提交
fd88a827bb
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      dictionary.tcl

+ 9 - 0
dictionary.tcl

@@ -227,6 +227,15 @@ proc ::dictionary::publearn {nick host hand chan argv} {
     return
   }
 
+  if {[string tolower $rest] == "braindump"} {
+    set i 1
+    foreach response $::dictionary::chatty_responses {
+      puthelp "PRIVMSG $nick :$i. $response"
+      incr i
+    }
+    return
+  }
+
   set response [::dictionary::get_chatty_response $nick]
   putserv "PRIVMSG $chan :$response"
 }