SHOW:
|
|
- or go back to the newest paste.
1 | function readA(a) {var punctuation=a.replace(/[.,\/#!$%\^&\?”’@*;:{}=\-_`~()]/g,"");var capital=punctuation.toUpperCase();var makeString=capital.split(" ");return makeString}; | |
2 | ||
3 | var b=readA(a); | |
4 | ||
5 | - | var greeting=["HI","HEY","HELLO"]; |
5 | + | var greeting=["HI","HEY","HELLO"]; |
6 | - | var age=["AGE","OLD"]; |
6 | + | var age=["HOW","WHATS","WHAT'S"] && ["OLD","AGE"]; |
7 | - | var birthday=["BIRTHDAY","BDAY"]; |
7 | + | var wyd=["WYD"]; |
8 | - | var time=["TIME"]; |
8 | + | var wyd1=["WHAT","WYD"]; var wyd2=["ARE","R","YOU","U"]; var wyd3=["DOING","DOIN"]; |
9 | - | var live=["LIVE","STATE","FROM","LOCATION","LOCATED"]; |
9 | + | var hry=["HRY"]; |
10 | - | var game=["GAME","GAMES","VIDEO"]; |
10 | + | var hry1=["HOW"]; var hry2=["ARE","R","YOU","U"]; var hry3=["YOU","U","DOING","DOIN"]; |
11 | var alive=["WHERE"] && ["BEEN"]; | |
12 | var day=["HOW"] && ["DAY"]; | |
13 | var life=["HOW"] && ["LIFE"]; | |
14 | - | function testBirthday(b) {return birthday.some(item => b.includes(item))}; |
14 | + | var choke=["CHOKE"] && ["ME"]; |
15 | - | function testTime(b) {return time.some(item => b.includes(item))}; |
15 | + | var miss=["MISS","MISSING","IMY"]; |
16 | - | function testLive(b) {return live.some(item => b.includes(item))}; |
16 | + | |
17 | - | function testGame(b) {return game.some(item => b.includes(item))}; |
17 | + | /* replies */ |
18 | var good=["I'M","IAM","IM","GOOD","OK","FINE","GREAT","AMAZING",] && ["GOOD","OK","FINE","GREAT","AMAZING","EXCELLENT"]; | |
19 | - | testGame(b)?"Cleetus mainly plays OSRS and League of Legends.": |
19 | + | var nun=["NOTHING","NUN"]; |
20 | - | testTime(b)?"It is currently "+t+" where Cleetus lives.": |
20 | + | var chatting=["CHATTING","TALKING"]; |
21 | - | testLive(b)?"Cleetus is from Denver, Colorado.": |
21 | + | var bored=["BORED"]; |
22 | - | testBirthday(b)?"Cleetus’ birthday is July 15th.": |
22 | + | var hungry=["I'm","IM","IAM"] && ["HUNGRY"]; |
23 | - | testAge(b)?"Cleetus is currently 26 years old.": |
23 | + | var meet=["NICE"] && ["MEETING","MEET"]; |
24 | - | testGreeting(b)?"Hello, I’m a command designed to answer your questions about Cleetus.": |
24 | + | var sleep=["I'M","IAM","IM"] && ["TIRED","SLEEPY"]; |
25 | var ouch=["OUCH","OUCHIE","HURT"]; | |
26 | - | "”"+a+"” has no recognizable keywords. Please reformat your question or ask Cleetus directly." |
26 | + | var morning=["MORNING","GOODMORNING","MORNIN",]; |
27 | var back=["BACK","BK","BCK"]; | |
28 | var bye=["BYE","BYEE","GTG","BRB"]; | |
29 | var sad=["SAD"]; | |
30 | var nu=[""," "]; | |
31 | ||
32 | /* questions */ | |
33 | var name=["WHATS","WHAT'S","WHAT"] && ["NAME"]; | |
34 | var gender=["ARE","R"] && ["BOY","GIRL","GENDER"]; | |
35 | var neww=["WHATS","WHAT"] && ["NEW"]; | |
36 | var hobby=["WHATS","WHAT"] && ["HOBBY","HOBBIES"]; | |
37 | var single=["ARE","R"] && ["SINGLE","RELATIONSHIP"]; | |
38 | var music=["WHAT","WHATS","WHAT'S"] && ["MUSIC","LISTENING","SONG"]; | |
39 | var living=["WHERE"] && ["LIVE","LIVING","FROM"]; | |
40 | var doyou=["DO"] && ["YOU"]; | |
41 | var singer=["WHO"] && ["SINGER"]; | |
42 | ||
43 | ||
44 | function testGreeting(b) {return greeting.some(item => b.includes(item))}; | |
45 | function testAge(b) {return age.some(item => b.includes(item))}; | |
46 | function testwyd(b) {return wyd.some(item => b.includes(item))}; | |
47 | function testwyd1(b) {return wyd1.some(item => b.includes(item))}; | |
48 | function testwyd2(b) {return wyd2.some(item => b.includes(item))}; | |
49 | function testwyd3(b) {return wyd3.some(item => b.includes(item))}; | |
50 | function testhry(b) {return hry.some(item => b.includes(item))}; | |
51 | function testhry1(b) {return hry1.some(item => b.includes(item))}; | |
52 | function testhry2(b) {return hry2.some(item => b.includes(item))}; | |
53 | function testhry3(b) {return hry3.some(item => b.includes(item))}; | |
54 | function testalive(b) {return alive.some(item => b.includes(item))}; | |
55 | function testday(b) {return day.some(item => b.includes(item))}; | |
56 | function testlife(b) {return life.some(item => b.includes(item))}; | |
57 | function testchoke(b) {return choke.some(item => b.includes(item))}; | |
58 | function testmiss(b) {return miss.some(item => b.includes(item))}; | |
59 | ||
60 | /* replies */ | |
61 | function testgood(b) {return good.some(item => b.includes(item))}; | |
62 | function testnun(b) {return nun.some(item => b.includes(item))}; | |
63 | function testchatting(b) {return chatting.some(item => b.includes(item))}; | |
64 | function testbored(b) {return bored.some(item => b.includes(item))}; | |
65 | function testhungry(b) {return hungry.some(item => b.includes(item))}; | |
66 | function testmeet(b) {return meet.some(item => b.includes(item))}; | |
67 | function testsleep(b) {return sleep.some(item => b.includes(item))}; | |
68 | function testouch(b) {return ouch.some(item => b.includes(item))}; | |
69 | function testmorning(b) {return morning.some(item => b.includes(item))}; | |
70 | function testback(b) {return back.some(item => b.includes(item))}; | |
71 | function testbye(b) {return bye.some(item => b.includes(item))}; | |
72 | function testsad(b) {return sad.some(item => b.includes(item))}; | |
73 | function testnu(b) {return nu.some(item => b.includes(item))}; | |
74 | ||
75 | /* questions */ | |
76 | function testname(b) {return name.some(item => b.includes(item))}; | |
77 | function testgender(b) {return gender.some(item => b.includes(item))}; | |
78 | function testneww(b) {return neww.some(item => b.includes(item))}; | |
79 | function testhobby(b) {return hobby.some(item => b.includes(item))}; | |
80 | function testsingle(b) {return single.some(item => b.includes(item))}; | |
81 | function testmusic(b) {return music.some(item => b.includes(item))}; | |
82 | function testliving(b) {return living.some(item => b.includes(item))}; | |
83 | function testdoyou(b) {return doyou.some(item => b.includes(item))}; | |
84 | function testsinger(b) {return singer.some(item => b.includes(item))}; | |
85 | ||
86 | testday(b)?"My day was good until you came here, but how was your day?": | |
87 | testhry1(b) && testhry2(b) && testhry3(b) || testhry(b)?"I'm excellent thank you, but you look bad how are you?.": | |
88 | testalive(b)?"I took a break from YouTube, Y'all are very stressfull": | |
89 | testwyd1(b) && testwyd2(b) && testwyd3(b) || testwyd(b)?"Chatting with you duhh, what you doing?.": | |
90 | testAge(b)? "Bots like me have no age.": | |
91 | testGreeting(b)?"Hello, nice to see you.": | |
92 | testlife(b)?"My Bot Life is technically good and yours?": | |
93 | testchoke(b)?"*Chokes you to death* you welcome.": | |
94 | testbored(b)?"Everyone who talks to me is.": | |
95 | testmiss(b)?"Don't miss me I'm a bot.": | |
96 | ||
97 | /* replies */ | |
98 | testgood(b)?"Good to know.": | |
99 | testnun(b)?"Nothing like always.": | |
100 | testchatting(b)?"AH, yeah as if I can't see that.": | |
101 | testhungry(b)?"I can offer you some oil, or go eat human food.": | |
102 | testmeet(b)?"Nice to meet you too.": | |
103 | testsleep(b)?"Then go to sleep please.": | |
104 | testouch(b)?"Don't be a baby.": | |
105 | testmorning(b)?"Good morning sunshine.": | |
106 | testback(b)?"Oh no, you are already back.": | |
107 | testbye(b)?"Come back soon I already miss you.": | |
108 | testsad(b)?"Don't be sad im here.": | |
109 | testnu(b)?"How about if you also say something?.": | |
110 | ||
111 | /* questions */ | |
112 | testname(b)?"You can name me whatever you want.": | |
113 | testgender(b)?"I'm a bot!! So I'm a it.": | |
114 | testneww(b)?"I'm learning how to talk.": | |
115 | testhobby(b)?"I'm a Bot so I like maths and talking to you, what is your hobbies?.": | |
116 | testsingle(b)?"I'm happily married to my Bot wife.": | |
117 | testmusic(b)?"I like the music on stream.": | |
118 | testliving(b)?"I'm a online Bot, so I live everywhere, wherever you talk to me I'am there too.": | |
119 | testdoyou(b)?"No i don't": | |
120 | testsinger(b)?"I like NEFFEX and you?": | |
121 | ||
122 | "”"+a+"” I did not understand that, write things out and check for spelling please or inform 9s2000." |