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/output_append.tcl

    r992 r1082  
    1515 
    1616proc bMotion_plugin_output_append { channel line } { 
    17         if {([string length $line] > 10) && ([rand 100] > 90)} { 
     17        putlog "running append plugin" 
     18        set length [string length $line] 
     19        set n [rand 100] 
     20        bMotion_putloglev d * "output_append: length=$length, n=$n" 
     21        if {($length > 10) && ($n > 90)} { 
     22                bMotion_putloglev d * "output_append: doing!" 
    1823                set line [string trim $line] 
    1924                # make sure the line ends with a letter (other than D) 
     
    2328                        if [regexp -nocase {[a-ce-z]$} $line] { 
    2429                                append line "%VAR{appends}" 
     30                        } else { 
     31                                bMotion_putloglev d * "output_append: not appending to this line as it may end in a smiley" 
    2532                        } 
    2633                } else { 
    27                         if {![regexp {^[:;=/]} $line} { 
     34                        if {![regexp {^[:;=/]} $line]} { 
    2835                                # don't do this for /me type lines and smilies 
    2936                                return $line 
     
    3138                        set line "%VAR{prepends} $line" 
    3239                } 
     40                bMotion_putloglev d * "output_append: preprocessed line is $line" 
    3341 
    34                 set line [bMotionDoInterpolation $line "" "" $channel] 
     42                set line [bMotion_process_macros $channel $line] 
     43                regsub -all "%space" $line " " line 
    3544 
     45                bMotion_putloglev d * "output_append: postprocessed line is $line" 
    3646        } 
    3747        return $line 
     
    5767        ", i think" 
    5868        "%spaceor something totally different perhaps" 
     69        "%spacein the butt" 
     70        "%spacein a vagina" 
    5971} 
    6072bMotion_abstract_add_filter "appendslist" "^ " 
     
    8698bMotion_abstract_add_filter "narfs" {^[^ ]} 
    8799 
    88 bMotion_plugin_add_output "append" bMotion_plugin_output_append 1 "en" 1 
     100bMotion_plugin_add_output "append" bMotion_plugin_output_append 1 "en" 11 
Note: See TracChangeset for help on using the changeset viewer.