Changeset 902

Show
Ignore:
Timestamp:
04/23/08 07:03:22 (9 months ago)
Author:
james
Message:

new stuff

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/extra/jeffk.tcl

    r506 r902  
    11# $Id$ 
    2  
    32# 
    43 
    5  
    6  
     4############################################################################### 
     5# This is a bMotion plugin 
     6# Copyright (C) James Michael Seward 2000-2002 
     7# 
     8# This program is covered by the GPL, please refer the to LICENCE file in the 
     9# distribution; further information can be found in the headers of the scripts 
     10# in the modules directory. 
    711############################################################################### 
    812 
    9 # This is a bMotion plugin 
    10  
    11 # Copyright (C) James Michael Seward 2000-2002 
    12  
    13 # 
    14  
    15 # This program is covered by the GPL, please refer the to LICENCE file in the 
    16  
    17 # distribution; further information can be found in the headers of the scripts 
    18  
    19 # in the modules directory. 
    20  
    21 ############################################################################### 
    22  
    23  
    24  
    25  
    26  
    2713proc bMotion_module_extra_jeffk { line } { 
    28  
    2914  set line [string map -nocase {"hello" "helko" "n\'t" "ant" "sy" "sey" "is" "si"} $line] 
    30  
    3115  set line [string map -nocase {"like" "liek" "you" "yuo" "site" "siet" "body" "bodey"} $line] 
    32  
    3316  set line [string map -nocase {"taken" "taken" "ter" "tar" "make" "maek" "number" "%VAR{jeffk_number}"} $line] 
    34  
    3517  set line [string map -nocase {"name" "naem" "ll" "l" "ly" "ley"} $line] 
    36  
    3718  set line [string map -nocase {"ble" "bal" "word" "wrod" "inter" "intar" "lay" "alay" "luck" "luick" "here" "hear"} $line] 
    3819 
     
    4122  #set line [string map {"?" "%REPEAT{2:5:?}"} $line] 
    4223 
    43  
    44  
    4524  if {![rand 8]} { 
    46  
    4725    append line " %VAR{jeffk_ends}" 
    48  
    4926  } 
    5027 
    51  
    52  
    5328  set line [bMotionDoInterpolation $line "" "" ""] 
    54  
    5529  set line [bMotionInterpolation2 $line] 
    5630 
     31  if {![rand 6]} { 
     32    set line [string toupper $line] 
     33  } else { 
     34                set words [split $line " "] 
     35                set newline "" 
     36                foreach word $words { 
     37                        set word [string map -nocase { "you're" "%VAR{jeffk_ur}" "your" "%VAR{jekkf_ur}"} $line] 
     38                        set word [string map -nocase { "their" "%VAR{jeffk_thr}" "there" "%VAR{jeffk_thr}" "they're" "%VAR{jeffk_thr}"} $line] 
     39                        if {![rand 3]} { 
     40                                append newline [string toupper $word] 
     41                        } 
     42                        else { 
     43                                append newline $word 
     44                        } 
     45                        append newline " " 
     46                } 
     47                set line $newline 
     48        } 
    5749 
    58  
    59   if {![rand 6]} { 
    60  
    61     set line [string toupper $line] 
    62  
     50  if {![rand 10]} { 
     51    append line " %VAR{jeffk_ends}" 
    6352  } 
    6453 
    65  
    66  
    67   if {![rand 10]} { 
    68  
    69     append line " %VAR{jeffk_ends}" 
    70  
    71     set line [bMotionDoInterpolation $line "" "" ""] 
    72  
    73   } 
    74  
    75  
    76  
     54        set line [bMotionDoInterpolation $line "" "" ""] 
    7755  return $line 
    78  
    7956} 
    8057 
    81  
    82  
    8358set jeffk_number { "numbar" "number" } 
    84  
    85  
    86  
    8759set jeffk_ends {"wtf" "lol" "omg" "omg lol" "lol wtf" "faggot" "fagott" "hairy"} 
     60set jeffk_ur { "you''re" "your" "you're" } 
     61set jeffk_thr { "their" "there" "they're" "they''re" "theyre" }