procgen  Check-in [44f5ce5d15]

Overview
Comment:fix sam
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 44f5ce5d15df8471704ba0395223496e9679420b282532bcdf3e8d35d0afb813
User & Date: velartrill on 2018-11-20 20:52:09
Other Links: manifest | tags
Context
2018-11-20
21:02
fix likelihood check-in: 574e682167 user: velartrill tags: trunk
20:52
fix sam check-in: 44f5ce5d15 user: velartrill tags: trunk
20:40
checkmate, athiests! check-in: 93b72b5a88 user: lexi tags: trunk
Changes

Modified procbot.rb from [89ca62b13c] to [0ff16ef99e].

     1         -#!/usr/bin/ruby
            1  +#!/usr/bin/env ruby
     2      2   # encoding: UTF-8
     3      3   require "cinch"
     4      4   Bots = ["cclg", "sext", "sect", "order", "monster", "pharma", "argue","crime","drug","badbio","bottist","egret_txt", "babdio", "botsoc","dx","ransul"]
     5      5   ShoutingMatch = /\b(MS\.|MS\s|SERGEANT\s|SGT\s|SGT\.|COMRADE\s|CITIZEN\s)?\s*(SAMANTHA TAGGART|SAMANTHA TAGUE|SAMANTHA|SAM TAGUE|SAM TAGGART|SAMTAGUE|SAMMY|SAM|TAGUE|TAGGART|FRIEND COMPUTER)\b/
     6      6   SmallMatch = /\b(ms\.|ms\s|sergeant\s|sgt\s|sgt\.|comrade\s|citizen\s)?\s*(samantha taggart|samantha tague|samantha|sam tague|sam taggart|samtague|sam|sammy|tague|taggart|friend computer|(ね|)サム|(ね|)サムさん|(ね|)サムちゃん|سام|يا سام)\b/i
     7      7   FormalQs = [
     8      8   	"How may I be of assistance",
................................................................................
   662    662   			else
   663    663   				result=perform(action,user)
   664    664   				r=""
   665    665   				if result != nil
   666    666   					result.chomp!
   667    667   					if formality != :friendly
   668    668   						r=affirmatives[formality].sample+" "
   669         -						result[0] = result[0].upcase
          669  +						result[0] = result[0].upcase if formality != :ranuir
   670    670   						result += "." if not result=~/\W$/
   671    671   					end
   672    672   					reply r+result.chomp
   673    673   				else
   674    674   					reply negatives[formality].sample
   675    675   				end
   676    676   			end

Deleted test version [a7ffc6f8bf].