Differences From
Artifact [89ca62b13c]:
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