Changeset 1010 for trunk/plugins/en/action_complex_failsafe.tcl
- Timestamp:
- 06/19/09 16:28:12 (3 years ago)
- File:
-
- 1 edited
-
trunk/plugins/en/action_complex_failsafe.tcl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/action_complex_failsafe.tcl
r961 r1010 15 15 bMotion_plugin_add_action_complex "zzz-failsafe" {^(.+?)s?( at|with)? %botnicks} 100 bMotion_plugin_complex_action_failsafe "en" 16 16 bMotion_plugin_add_action_complex "aaa-autogender" {[a-z]+s (his|her) } 100 bMotion_plugin_complex_action_autolearn_gender "en" 17 bMotion_plugin_add_action_complex "aaa-verbcatch" {(\w+s)\M} 100 bMotion_plugin_complex_action_verb_catch "en" 17 18 18 19 proc bMotion_plugin_complex_action_failsafe { nick host handle channel text } { … … 108 109 } 109 110 111 proc bMotion_plugin_complex_action_verb_catch { nick host handle channel text } { 112 113 set stem "" 114 if [regexp -nocase {^((\w+)s)\M} $text matches verb stem] { 115 } 116 117 if {$stem != ""} { 118 if [string match -nocase "*e" $stem] { 119 set stem [string range $stem 0 end-1] 120 } 121 # TODO: Handle any obvious cases where the stem isn't just lopping off the s! 122 bMotion_putloglev 1 * "found verb $verb ($stem)" 123 bMotion_abstract_add "sillyVerbs" $stem 124 } 125 126 return 0 127 } 128 110 129 bMotion_abstract_register "failsafe_nice" 111 130 bMotion_abstract_batchadd "failsafe_nice" [list "mmm" "%VAR{smiles}" "%VAR{smiles}%|/gives %% %VAR{sillyThings}" "i do love a good %2ing"] … … 134 153 bMotion_abstract_batchadd "failsafe_niceactions" [list "wh%REPEAT{3:7:e} %VAR{smiles}" "%VAR{smiles}" "/bounces around" "*drool*" ] 135 154 136 155 bMotion_abstract_register "sillyVerbs"
Note: See TracChangeset
for help on using the changeset viewer.
