- Timestamp:
- 08/28/10 19:46:27 (21 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 13 edited
-
modules/abstract.tcl (modified) (2 diffs)
-
modules/abstracts/en/abstracts.tcl (modified) (9 diffs)
-
modules/abstracts/en/randomstuff.tcl (modified) (12 diffs)
-
plugins/action_simple.tcl (modified) (1 diff)
-
plugins/en/action_simple_general.tcl (modified) (1 diff)
-
plugins/en/complex_ass.tcl (modified) (1 diff)
-
plugins/en/complex_invader.tcl (modified) (6 diffs)
-
plugins/en/complex_questions.tcl (modified) (1 diff)
-
plugins/en/complex_spoonerism.tcl (modified) (1 diff)
-
plugins/en/complex_sucks.tcl (modified) (1 diff)
-
plugins/en/output_VAR.tcl (modified) (3 diffs)
-
plugins/en/output_append.tcl (modified) (1 diff)
-
plugins/en/output_english.tcl (modified) (4 diffs)
-
plugins/en/simple_countries.tcl (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/abstract.tcl
r1051 r1084 73 73 set BMOTION_MIXIN_NONE 2 74 74 set BMOTION_MIXIN_BOTH 3 75 set BMOTION_MIXIN_FEMALE 4 76 set BMOTION_MIXIN_MALE 5 75 77 76 78 if { [bMotion_setting_get "abstractMaxAge"] != "" } { … … 435 437 } 436 438 } 439 5 { 440 if [bMotion_abstract_exists "${abstract}_male"] { 441 bMotion_putloglev 1 * "mixing in male version of $abstract" 442 set final_version [concat $final_version [bMotion_abstract_all "${abstract}_male"]] 443 } 444 } 445 4 { 446 if [bMotion_abstract_exists "${abstract}_female"] { 447 bMotion_putloglev 1 * "mixing in female version of $abstract" 448 set final_version [concat $final_version [bMotion_abstract_all "${abstract}_female"]] 449 } 450 } 451 437 452 default { 438 453 putlog "bMotion ERROR: unknown mixin type $mixin_type for abstract $abstract" -
trunk/modules/abstracts/en/abstracts.tcl
r1082 r1084 392 392 "on the desk" 393 393 "in a book" 394 " Devon"395 " Amsterdam"394 "in Devon" 395 "in Amsterdam" 396 396 "a cheese shop" 397 " America"398 " Mars"397 "in America" 398 "in Mars" 399 399 "the USS Enterprise" 400 " north pole"400 "at the north pole" 401 401 "in a field" 402 402 "under a book" 403 403 "on top of the telly" 404 404 "in the toilet" 405 "Chippenham" 406 "New York" 407 "%OWNER{%ruser} house" 408 "hidden." 405 "in Chippenham" 406 "in New York" 407 "at %ruser{:owner} house" 409 408 "in the coffee pot" 410 409 "down the local shop" … … 414 413 "next to %ruser" 415 414 "in bed with Madonna" 416 "%VAR{cities}" 415 "in bed with %ruser{like}" 416 "in %VAR{cities}" 417 417 } 418 418 bMotion_abstract_register "answerWellbeing" { … … 451 451 "%NUMBER{10}.%NUMBER{10}" 452 452 "zero" 453 } 454 455 bMotion_abstract_register "answerHowmuch" { 456 "just enough" 457 "too much" 458 "too little" 459 "the right amount" 453 460 } 454 461 … … 1009 1016 1010 1017 bMotion_abstract_register "bodypart_female" { 1018 "front lumps" 1011 1019 "vagina" 1012 1020 "fanny" … … 1318 1326 } 1319 1327 1328 bMotion_abstract_add_filter "ranjoins" "%VAR\{food\}" 1329 1320 1330 bMotion_abstract_register "food" { 1321 1331 "honey" … … 1323 1333 "marmite" 1324 1334 "bovril" 1325 "chocolate spread"1335 "chocolate spread" 1326 1336 "nutella" 1327 "peanut butter"1337 "peanut butter" 1328 1338 "marmalade" 1339 "potato croquettes" 1340 "bacon" 1341 "toasted sandwich" 1342 "pizza" 1343 "corn flakes" 1329 1344 } 1330 1345 … … 3127 3142 "well blow me down" 3128 3143 "well i'll be a monkey's uncle" 3144 "well shut me up" 3129 3145 "yikes" 3130 3146 "cor" … … 4831 4847 "carrots" 4832 4848 "turnips" 4849 "pizza" 4850 "corn flakes" 4833 4851 } 4834 4852 … … 5718 5736 } 5719 5737 5738 bMotion_abstract_register "rooms" { 5739 "bathroom" 5740 "lounge" 5741 "kitchen" 5742 "bedroom" 5743 "living room" 5744 "basement" 5745 "cellar" 5746 "walk-in wardrobe" 5747 } 5748 5749 bMotion_abstract_register "musicalinstruments" { 5750 "piano" 5751 "trombone" 5752 "trumpet" 5753 "tuba" 5754 "xylophone" 5755 "harp" 5756 "flute" 5757 "clarinet" 5758 "oboe" 5759 "french horn" 5760 } 5761 5762 bMotion_abstract_register "pluralprefix" { 5763 "a bunch of" 5764 "a load of" 5765 "a lot of" 5766 "a metric fucktonne of" 5767 "an imperial fuckton of" 5768 "a buttload of" 5769 } 5770 5720 5771 bMotion_abstract_add_filter "_all" "\{strip\}\}" 5721 5772 bMotion_abstract_add_filter "_all" "\}\{strip\}" -
trunk/modules/abstracts/en/randomstuff.tcl
r1082 r1084 6 6 ### Used when the channel is not 'active' (default > 300s since last line) 7 7 bMotion_abstract_register "randomStuff" { 8 "i have a MIGHTY NEED to use the %VAR{rooms}" 8 9 "help! my %VAR{bodypart:plural} are escaping!" 9 10 "%REPEAT{7:7:ring }%VAR{fruits} phone" … … 260 261 "i hope you won't think it \"evil\" of me to ask how you got that stylish headwound" 261 262 "getting my brain out was the easy part. the hard part was getting my brain out%|muwahahahahaha" 263 "getting my %VAR{bodypart} out was the easy part. the hard part was getting my %VAR{bodypart:prev} out%|muwahahahahaha" 262 264 "they're all like, stop spraying me with ink, %me, stop eating the garbage, %me" 263 265 "Meanwhile in Universe A, %me A heads towards the Sun%|A." … … 302 304 "I didn't touch it." 303 305 "my zipper's stuck %VAR{unsmiles}" 306 "my %VAR{clothes}'s stuck %VAR{unsmiles}" 304 307 "my %VAR{bodypart} is hurting %VAR{unsmiles}" 305 308 "my %VAR{bodypart} is %VAR{sillyVerbs:presentpart}" … … 328 331 "How do you make %ruser{enemy} laugh on Friday? A: Tell him a joke on Monday!" 329 332 "my knees feel lovely %VAR{smiles}" 333 "my %VAR{bodypart:plural} feel lovely %VAR{smiles}" 330 334 "that was a fucking rough game up yours" 331 335 "very flickable considering its length and bulk" … … 346 350 "if he's good enough for %ruser, he's good enough for me" 347 351 "here's a photograph of my fist" 352 "here's a photograph of my %VAR{bodypart}" 348 353 "i've had a fiddle with it but never used it properly" 349 354 "I often walk about with someone elses dick in my arse " … … 354 359 "Dodongo dislikes %VAR{sillyThings}" 355 360 "%ruser needs food, badly! %VAR{unsmiles}" 356 "%ruser has shot the food! %VAR{unsmiles}" 361 "%ruser needs food, badly! %VAR{unsmiles}%|/gives %ruser{prev} some %VAR{foods}%|/helped." 362 "%ruser has shot the food! %VAR{unsmiles}%}%BOT[noooo my %VAR{foods}]" 357 363 "%ruser has shot the potion! %VAR{unsmiles}" 358 364 "%ruser now has reflecting shots! %VAR{smiles}" … … 397 403 ### Mixed in with list above 398 404 bMotion_abstract_register "randomStuff_male" { 399 "I always thought the most sensual part of a woman was the %VAR{bodypart: revmixin}"405 "I always thought the most sensual part of a woman was the %VAR{bodypart:female_mixin}%|mmm... %ruser{female}%VAR{bodypart:prev,plural}" 400 406 "Looks like the squirrel's been showing everyone where he keeps his nuts." 401 407 "You wanna see some stuff I'm not supposed to show anyone?" … … 430 436 431 437 bMotion_abstract_register "randomStuff_female" { 438 "I always thought the most sensual part of a man was the %VAR{bodypart:male_mixin}%|mmm... %ruser{male}%VAR{bodypart:prev,plural}" 432 439 "i'm so fat i broke %NUMBER{100} toilets %VAR{unsmiles}" 433 440 "i'm so fat i broke %NUMBER{100} toilets %VAR{unsmiles}%|%BOT[at once]" … … 612 619 "i don't know what you're talking about" 613 620 "do we have any solaris 9 boxes with solaris 9 on?" 614 "that's not chocolateanyway %ruser{enemy}"621 "that's not a %VAR{fruits} anyway %ruser{enemy}" 615 622 "Yeah, I was up that" 616 623 "yeah, keep it open until I'm sure" … … 620 627 "didn't you just pump it out on the ground" 621 628 "er, not that far in, would be really painful at this time of night" 629 "er, not that far in, would be really painful at this time of %daytime" 622 630 "shouldn't be a problem unless you keep re-using the same tissue" 631 "shouldn't be a problem unless you keep re-using the same %VAR{sillyThings:strip}" 623 632 "push the stinky dribbling fuck into the sea " 624 633 "mount them so you can alter their thrust " … … 633 642 "and now what?" 634 643 "but is it art?" 635 "why don't i just jump out of a plane with a pianoglued to my face"644 "why don't i just jump out of a plane with a %VAR{musicalinstruments} glued to my face" 636 645 "i want mine with sprinkles" 637 646 "now back to Reducto's to enlarge myself!" 638 647 "%ruser is under some kind of spell. that's why i don't have to cover my mouth fully while i talk" 639 648 "who... does... number... two... work... for?" 649 "who... does... number... %NUMBER{50}... work... for?" 640 650 "you show that turd who's boss" 641 651 "i've been to some conventions like that" … … 652 662 "I'll take the case!" 653 663 "That means in the future I'm going to have sex! With a woman!" 664 "That means in the future I'm going to have sex! With %VAR{sillyThings}!" 654 665 "Oooh that's hot! Say it again!" 655 666 } -
trunk/plugins/action_simple.tcl
r726 r1084 20 20 21 21 # now autoload the rest from plugins/action_simple_*.tcl 22 23 set files [glob -nocomplain "$bMotionPlugins/ action_simple_*.tcl"]22 set currentlang $bMotionInfo(language) 23 set files [glob -nocomplain "$bMotionPlugins/$currentlang/action_simple_*.tcl"] 24 24 foreach f $files { 25 25 set count [llength [array names bMotion_plugins_action_simple]] -
trunk/plugins/en/action_simple_general.tcl
r936 r1084 15 15 bMotion_plugin_add_action_simple "moo" "^(goes |does a )?moo+s?( at %botnicks)?" 40 [list "%VAR{moos}"] "en" 16 16 17 bMotion_plugin_add_action_simple "calls" "calls %botnicks \[a-z\]" 100 [list "r" "%VAR{smiles}" "well slap my ass and call me that thing you said!" "that's not my name!"] "en" 18 -
trunk/plugins/en/complex_ass.tcl
r936 r1084 21 21 22 22 if [regexp -nocase {([a-z]+)[- ]ass ([a-z]+)} $text matches 1 2] { 23 bMotionDoAction $channel "" "$1 ass-$2" 23 if {![regexp -nocase "so" $2]} { 24 bMotionDoAction $channel "" "$1 ass-$2" 25 } else { 26 return 0 27 } 28 } else { 29 return 0 24 30 } 25 31 } -
trunk/plugins/en/complex_invader.tcl
r1082 r1084 95 95 "MADNESS%colen" 96 96 "have you the brain worms?" 97 "have you the %VAR{bodypart} worms?" 97 98 "you won't make a fool of this Irken invader" 98 99 "I'll just have to wait for the skin to grow back on my eyeballs" … … 114 115 "say, you're full of organs aren't you? and you wouldn't notice if you were missing a few?" "evaluation: PATHETIC%colen" 115 116 "Evaluation: LEMON FRESH%colen" 117 "Evaluation: %VAR{fruits:caps} FRESH%colen" 116 118 "surely that was no human bee!" 117 119 "when the repairs are done i shall hunt down that evil death bee." … … 202 204 "activate the shrinky self-destruct!" 203 205 "you dare insult the pants of %me%colen" 206 "you dare insult to %VAR{clothes:plural} of %me%colen" 204 207 "get off of me! you smell like human!" 205 208 "%ruser... analysis: moron!" … … 240 243 "doo dee doo dedo deee do" 241 244 "i got chocolate bubblegum!" 245 "i got %VAR{fruits} bubblegum!" 246 "i got %VAR{vegetables} bubblegum!" 242 247 "hooray for earth!" 243 248 "weee hehehehehehehehe" … … 257 262 "i like TV" 258 263 "aw... i wanted to explode" 264 "aw... i wanted to %VAR{sillyVerbs}" 259 265 "I'm guarding the house" 260 266 "thank you... i love you." … … 313 319 314 320 # "zim" plugin responds to "invade or invasion" "zim" "mwahahaha or hahaha" "victory for" "how dare" "you dare" 315 bMotion_plugin_add_complex "invader(zim)" "zim|inva(de|sion)|((mwa)?ha(ha)+)|(victory for)|((you|how) dare)" 20"bMotion_plugin_complex_invader_zim" "en"321 bMotion_plugin_add_complex "invader(zim)" "zim|inva(de|sion)|((mwa)?ha(ha)+)|(victory for)|((you|how) dare)" 15 "bMotion_plugin_complex_invader_zim" "en" 316 322 317 323 # "gir" plugin responds to "gir" "whooo or wooo" "chicken" "doom" "piggy", now with new improved "finally! -
trunk/plugins/en/complex_questions.tcl
r1060 r1084 454 454 proc bMotion_plugin_complex_question_much { nick channel host } { 455 455 bMotion_putloglev 2 * "$nick how much question" 456 bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{answerHowm anys}"456 bMotionDoAction $channel [bMotionGetRealName $nick $host] "%VAR{answerHowmuch}" 457 457 return 1 458 458 } -
trunk/plugins/en/complex_spoonerism.tcl
r1082 r1084 72 72 73 73 if [regexp -nocase {([a-z]+)less ([a-z]+)\M} $text matches one two] { 74 if [regexp -nocase "(un|use|b)"$one] {74 if [regexp -nocase {^(un|use|b|regard)$} $one] { 75 75 return 0 76 76 } 77 77 78 if [regexp -nocase "(one)"$two] {78 if [regexp -nocase {^(one|of|n)$} $two] { 79 79 return 0 80 80 } -
trunk/plugins/en/complex_sucks.tcl
r1079 r1084 17 17 global botnicks 18 18 19 set stoplist "^(t|teh|the|that|you|which|that|it|what|they)$" 20 19 21 if [regexp -nocase {([a-z0-9]+) (all )?suck[.!]*$} $text matches item] { 20 bMotionDoAction $channel $item "%VAR{sucks}" 21 return 1 22 if {![regexp -nocase $stoplist $item]} { 23 bMotionDoAction $channel $item "%VAR{sucks}" 24 return 1 25 } 22 26 } 23 27 24 28 if [regexp -nocase {^([a-z0-9]+) sucks} $text matches item] { 25 if [regexp -nocase "^(teh|the|that|you|which|that|it|what)$"$item] {29 if [regexp -nocase $stoplist $item] { 26 30 return 0 27 31 } -
trunk/plugins/en/output_VAR.tcl
r1082 r1084 25 25 bMotion_putloglev 4 * "bMotion_plugin_output_VAR $channel $line" 26 26 global BMOTION_MIXIN_NONE BMOTION_MIXIN_REVERSE BMOTION_MIXIN_DEFAULT BMOTION_MIXIN_BOTH 27 global BMOTION_MIXIN_MALE BMOTION_MIXIN_FEMALE 27 28 28 29 set line [string map { "%noun" "%VAR{sillyThings}" } $line] … … 59 60 bMotion_putloglev 1 * "mixin type for $abstract is both" 60 61 set mixin_type $BMOTION_MIXIN_BOTH 62 } elseif {[lsearch $options_list "malemixin"] > -1} { 63 bMotion_putloglev 1 * "mixin type for $abstract is male" 64 set mixin_type $BMOTION_MIXIN_MALE 65 } elseif {[lsearch $options_list "femalemixin"] > -1} { 66 bMotion_putloglev 1 * "mixin type for $abstract is female" 67 set mixin_type $BMOTION_MIXIN_FEMALE 61 68 } 62 69 … … 131 138 bMotion_putloglev 1 * "pluralising $replacement" 132 139 set replacement [bMotionMakePlural $replacement] 133 putlog $replacement 140 if {[rand 100] > 90} { 141 set replacement [bMotion_strip_article $replacement] 142 set replacement "%VAR{pluralprefix} $replacement" 143 if {[lsearch "strip" $options_list] > -1} { 144 set replacement [bMotion_strip_article $replacement] 145 } 146 } 134 147 } 135 148 "owner" { -
trunk/plugins/en/output_append.tcl
r1082 r1084 15 15 16 16 proc bMotion_plugin_output_append { channel line } { 17 putlog "running append plugin"18 17 set length [string length $line] 19 18 set n [rand 100] -
trunk/plugins/en/output_english.tcl
r1049 r1084 37 37 } 38 38 39 #"a an" and "an a" are wrong40 regsub -nocase -all "(a an|an a) " $line "" "a"41 39 42 40 #"a" before a vowel needs to be "an" … … 48 46 # a(n) before a number is wrong more often than it is right 49 47 regsub -nocase -all {an? ([0-9]+)} $line {\1} line 48 49 #"a an" and "an a" are wrong 50 regsub -nocase -all "(a an|an a) " $line "" "a" 50 51 51 52 if {[rand 100] > 60} { … … 60 61 } 61 62 63 regsub -all "an? some" $line "some" line 64 65 regsub -all "you is " $line "you are " line 66 67 regsub -all "the an?" $line "the" line 68 62 69 #fix double (or more) spaces 63 70 regsub -all " +" $line " " line … … 68 75 regsub -all {\myou is\M} $line "you are" line 69 76 77 #fix gap before full stop 78 79 #TODO: fix 80 regexp -all { +\\.} $line "." line 81 70 82 # fix american spellings 71 83 # TODO: make this an option or US bots can talk wrong english and UK bots can talk right english
Note: See TracChangeset
for help on using the changeset viewer.
