Differences From
Artifact [a9347924e0]:
1 1 #!/usr/bin/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 -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)\b/
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|(ね|)サム|(ね|)サムさん|(ね|)サムちゃん|سام|يا سام)\b/i
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 +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",
9 9 "Yes",
10 10 "You rang",
11 11 "What can I do for you today",
12 12 "Yes",
13 13 "You rang",
................................................................................
25 25 c.user = "samtague"
26 26 c.realname = "samantha taggart"
27 27 #c.sasl.username = "sam-tague"
28 28 #c.sasl.password = "bott-ist-tot"
29 29 c.ssl.use = true
30 30 end
31 31
32 - on :message, /\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|tague|taggart|(ね|)サム|(ね|)サムさん|(ね|)サムちゃん|سام|يا سام)\b/i do |m|
32 + on :message, /\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|tague|taggart|friend computer|(ね|)サム|(ね|)サムさん|(ね|)サムちゃん|سام|يا سام)\b/i do |m|
33 33
34 34 @m=m
35 35 @shouting = false
36 36 def reply(x)
37 37 if @shouting
38 38 @m.reply x.upcase
39 39 else
................................................................................
642 642 ].sample+" to "+[
643 643 "meet you",
644 644 "get to meet you",
645 645 "make your acquaintance"
646 646 ].sample+", "+param+(rand(2)==0 ? ". "+user+" has told me so much about you" : "")
647 647 elsif param=scancmd(action,["good night","night","gnight","g'night","i'm going to bed","going to bed","im going to bed", "bedtime", "time for bed", "it's my bedtime","its my bedtime","nighty-night"])
648 648 reply mult(["good night","night","sleep well","sleep tight","i wish you an enjoyable cycle of nocturnal hallucinations", "commencement of dormancy phase acknowledged"], ["", ", "+user, ", pesky flesh-creature", ", human", ", mortal"]).sample
649 - elsif param=scancmd(action,["i don't care","it doesn't matter","don't care","idc","nevermind","never mind","nvm","i don't give a shit","i don't give a fuck", "does it look like i care"])
649 + elsif param=scancmd(action,["i don't care","it doesn't matter","don't care","idc","nevermind","never mind","nvm","i don't give a shit","i don't give a fuck", "does it look like i care","maso ve","resho ve","resh dalo ve"])
650 650 reply dontcare[formality].sample
651 651 elsif param=scancmd(action,["fuck you","fuck off","go fuck yourself","get fucked","fu","get bent","diaf","die in a fire","screw you","you cunt","you bitch","you piece of shit","you scumbag","you sleazeball","you jackass","you asshole","you cockroach","des"])
652 652 reply insults[formality].sample
653 653 elsif param=scancmd(action,["thanks","thank you","i appreciate it", "ty", "thx", "obliged", "much obliged","appreciated","danke","gracias","merci","merci beaucoup","shukran","shukran jazeelan","asante","asante sana","arigatou","doumo arigatou", "ありがとう", "どうもありがとう", "どうもありがとうございます","شكران", "شكران جزيلاا"])
654 654 reply thankyou[formality].sample
655 655 elsif param=scancmd(action,["well done","good work","excellent work","good girl","nicely done","nice job","good job","perfect","you did well","excellent job","you did great","you did perfect","you did perfectly","wonderful","you did good","gj"])
656 656 reply goodgirl[formality].sample
................................................................................
703 703 if formality == :military and lowrank
704 704 reply negatives[formality].sample
705 705 return
706 706 end
707 707 result=perform(action, user)
708 708 r=""
709 709 if result != nil
710 - result[0] = result[0].upcase if formality != :friendly
710 + result[0] = result[0].upcase if formality != :friendly and formality != :ranuir
711 711 r=affirmatives[formality].sample
712 712 result.chomp!
713 713 result += "." if not result=~/\W$/
714 714 reply r+" "+result
715 715 else
716 716 reply negatives[formality].sample
717 717 end