Ignore:
Timestamp:
08/26/10 11:32:47 (21 months ago)
Author:
james
Message:

reduced lolcats chance
added output to "and then"
trigger fixes for r, luggage combination and look robot
fix priority on typos plugin
new "triplet" macro filter which gets a const-vowel-const triplet from the word
new "pretriplet" macro filter to use with "triplet"
fixed output_append to actually fire
make "cool" a stopwor for spoonerism
more grammar nazism
fix broken output being sent to IRC
adjust lower friendship limit slightly
many updates to abstracts
fix queue not adding last output to cache
guard code in interbot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/en/complex_nazi.tcl

    r979 r1082  
    1414 
    1515bMotion_plugin_add_complex "nazi-your" "^your (a|the) \[a-z\]+$" 60 bMotion_plugin_complex_nazi1 "en" 
    16 bMotion_plugin_add_complex "nazi-regexp" "^s/\[^/\]+/\[^/\]+$" 80 bMotion_plugin_complex_nazi2 "en" 
     16bMotion_plugin_add_complex "nazi-regexp" "^s/\[^/\]+/\[^/\]+$" 30 bMotion_plugin_complex_nazi2 "en" 
     17bMotion_plugin_add_complex "nazi-meand" "\\mme and \[a-z\]+" 60 bMotion_plugin_complex_nazi3 "en" 
     18bMotion_plugin_add_complex "nazi-meand2" "\[a-z\]+ and me\\M" 60 bMotion_plugin_complex_nazi4 "en" 
    1719 
    1820proc bMotion_plugin_complex_nazi1 {nick host handle channel text} { 
     
    3941} 
    4042 
     43proc bMotion_plugin_complex_nazi3 {nick host handle channel text} { 
     44 
     45        if [regexp -nocase "\\mme and (\[a-z\]+)( \[a-z\]+)?" $text matches other verb] { 
     46                if {$verb == ""} { 
     47                        if {![bMotion_interbot_me_next $channel]} { 
     48                                return 0 
     49                        } 
     50                        bMotionDoAction $channel $nick "%%: %2 and me" $other 
     51                        return 1 
     52                } else { 
     53                        regsub -nocase "me and $other" $text "$other and me" text 
     54                        return [bMotion_plugin_complex_nazi4 $nick $host $handle $channel $text] 
     55                } 
     56                return 0 
     57        } 
     58} 
     59 
     60proc bMotion_plugin_complex_nazi4 {nick host handle channel text} { 
     61        if {![bMotion_interbot_me_next $channel]} { 
     62                return 0 
     63        } 
     64         
     65        #TODO: extend this list 
     66        if [regexp -nocase "\\m(\[a-z\]+ and \)me\\M (were|did)\\M" $text matches other verb] { 
     67                bMotionDoAction $channel $nick "%%: $other I" 
     68                return 1 
     69        } 
     70        return 0 
     71} 
     72 
     73 
    4174bMotion_abstract_register "nazi1" 
    4275bMotion_abstract_batchadd "nazi1" [list "%%: \"you're\"" "their what?" "s/your/you're/"] 
Note: See TracChangeset for help on using the changeset viewer.