Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- note = "input is the user query after the command";
- upnext = "Remove anything that's not an uppercase letter from the input and replace letters with special sequences used later on";
- input = input.replace(/[^A-Z]/g,"");
- input = input.replace(/A/g,"#a#");
- input = input.replace(/B/g,"#b#");
- input = input.replace(/C/g,"#c#");
- input = input.replace(/D/g,"#d#");
- input = input.replace(/E/g,"#e#");
- input = input.replace(/F/g,"#f#");
- input = input.replace(/G/g,"#g#");
- input = input.replace(/H/g,"#h#");
- input = input.replace(/I/g,"#i#");
- input = input.replace(/J/g,"#j#");
- input = input.replace(/K/g,"#k#");
- input = input.replace(/L/g,"#l#");
- input = input.replace(/M/g,"#m#");
- input = input.replace(/N/g,"#n#");
- input = input.replace(/O/g,"#o#");
- input = input.replace(/P/g,"#p#");
- input = input.replace(/Q/g,"#q#");
- input = input.replace(/R/g,"#r#");
- input = input.replace(/S/g,"#s#");
- input = input.replace(/T/g,"#t#");
- input = input.replace(/U/g,"#u#");
- input = input.replace(/V/g,"#v#");
- input = input.replace(/W/g,"#w#");
- input = input.replace(/X/g,"#x#");
- input = input.replace(/Y/g,"#y#");
- input = input.replace(/Z/g,"#z#");
- upnext = "Check if there is any useable input left";
- correctInput = "true";
- if(input == ""){
- correctInput = "false";
- }
- upnext = "Set up arrays with words for every letter of the alphabet";
- a = ['Axe ', 'Anger ', 'Ass ', 'Ant ', 'Amazing ', 'Automatic ', 'Autism ', 'Angry ', 'Apple ', 'Attack ', 'Admin '];
- b = ['Book ', 'Bowl ', 'Boob ', 'Butt ', 'Boing ', 'Boots ', 'Butter ', 'Boring ', 'Bomb ', 'Bunnster ', 'Bimbus ', 'Bot ', 'Bun ', 'Blessed '];
- c = ['Charge ', 'Crack ', 'Cow ', 'Coins ', 'Cock ', 'Cancer ', 'Catapult ', 'Critical ', 'Christian ', 'Cheese ', 'Cracker ', 'Cunty ', 'Country ', 'Crap ', 'Cursed ', 'Chink ', 'Chonker '];
- d = ['Duck ', 'Dawn ', 'Dick ', 'Dooting ', 'Dude ', 'Dream ', 'Dogs ', 'Doggo ', 'Dreamer ', 'Dumb ', 'Doofus '];
- e = ['Eternity ', 'Elephant ', 'Egg ', 'E ', 'Eternal ', 'Eating ', 'Electrical ', 'Endless '];
- f = ['France ', 'Fart ', 'Fucker ', 'Fun ', 'Funny ', 'Fucking ', 'Fish ', 'Frog ', 'Following ', 'Fruity '];
- g = ['Goose ', 'Gun ', 'Good ', 'Gorgeous ', 'Going ', 'Greenery', 'Gong ', 'Greatness ', 'Gogo '];
- h = ['Hand ', 'House ', 'Honey ', 'Hitting ', 'Hot ', 'Help ', 'Helping ', 'Hunter '];
- i = ['Island ', 'Ink ', 'Infinity ', 'Infinite ', 'Irish ', 'Index ', 'Indian ', 'Igloo '];
- j = ['Janitor ', 'Joke ', 'Jack o\' Pumpkin ', 'Jobless ', 'Jacker ', 'Junk '];
- k = ['Kangaroo ', 'Karate ', 'Killer ', 'Killing ', 'King ', 'Komodo '];
- l = ['Lamp ', 'Love ', 'Looting ', 'Loser ', 'Lewd ', 'Link ', 'Laughing '];
- m = ['Man ', 'Mouse ', 'Mr. Win ', 'Money ', 'Making ', 'More ', 'Mister '];
- n = ['Nut ', 'Noon ', 'And ', 'Nutting ', 'Nutty ', 'Nude ', 'Nani '];
- o = ['Orange ', 'Oofing ', 'Oofer ', 'Ogre ', 'Onion ', 'Of ', 'Odorless '];
- p = ['Poop ', 'Power ', 'Peeing ', 'Porn ', 'Pope ', 'Perfect ', 'Penguin '];
- q = ['Question ', 'Quest ', 'Quantum ', 'Quaking ', 'Quacking ', 'Qutie '];
- r = ['Road ', 'Rooster ', 'Rolling ', 'Rescue ', 'Round ', 'Royalty ', 'Reality '];
- s = ['Street ', 'Soup ', 'Sprag ', 'Slime ', 'Square ', 'Stalking ', 'Stinky ', 'Super '];
- t = ['Tiddy ', 'Town ', 'Truth ', 'Total ', 'Training ', 'Trumo ', 'Trumpet ', 'Tower ', 'Trunk '];
- u = ['Universe ', 'Underground ', 'Undertale ', 'Uno ', 'Underwear ', 'Usurper '];
- v = ['Villa ', 'Vote ', 'Voodoo ', 'Villager ', 'Very ', 'Vandalism ', 'Viking '];
- w = ['World ', 'Week ', 'Weirdness ', 'Woof ', 'Windows ', 'Washing ', 'Wiener '];
- x = ['Xylophone ', 'Xenophobe ', 'Experience ', 'X '];
- y = ['Yearly ', 'Yeet ', 'Yoker ', 'Yonk ', 'Yutus ', 'Yanny ', 'Yoker '];
- z = ['Zombie ', 'Zoo ', 'Zone ', 'Zebra ', 'Zelda ', 'Zinkus '];
- upnext = "Replace letters in the input with random words from the arrays";
- output = input;
- output = output.replace(/#a#/,a[Math.floor(Math.random() * (a.length - 1))]);
- output = output.replace(/#b#/,b[Math.floor(Math.random() * (b.length - 1))]);
- output = output.replace(/#c#/,c[Math.floor(Math.random() * (c.length - 1))]);
- output = output.replace(/#d#/,d[Math.floor(Math.random() * (d.length - 1))]);
- output = output.replace(/#e#/,e[Math.floor(Math.random() * (e.length - 1))]);
- output = output.replace(/#f#/,f[Math.floor(Math.random() * (f.length - 1))]);
- output = output.replace(/#g#/,g[Math.floor(Math.random() * (g.length - 1))]);
- output = output.replace(/#h#/,h[Math.floor(Math.random() * (h.length - 1))]);
- output = output.replace(/#i#/,i[Math.floor(Math.random() * (i.length - 1))]);
- output = output.replace(/#j#/,j[Math.floor(Math.random() * (j.length - 1))]);
- output = output.replace(/#k#/,k[Math.floor(Math.random() * (k.length - 1))]);
- output = output.replace(/#l#/,l[Math.floor(Math.random() * (l.length - 1))]);
- output = output.replace(/#m#/,m[Math.floor(Math.random() * (m.length - 1))]);
- output = output.replace(/#n#/,n[Math.floor(Math.random() * (n.length - 1))]);
- output = output.replace(/#o#/,o[Math.floor(Math.random() * (o.length - 1))]);
- output = output.replace(/#p#/,p[Math.floor(Math.random() * (p.length - 1))]);
- output = output.replace(/#q#/,q[Math.floor(Math.random() * (q.length - 1))]);
- output = output.replace(/#r#/,r[Math.floor(Math.random() * (r.length - 1))]);
- output = output.replace(/#s#/,s[Math.floor(Math.random() * (s.length - 1))]);
- output = output.replace(/#t#/,t[Math.floor(Math.random() * (t.length - 1))]);
- output = output.replace(/#u#/,u[Math.floor(Math.random() * (u.length - 1))]);
- output = output.replace(/#v#/,v[Math.floor(Math.random() * (v.length - 1))]);
- output = output.replace(/#w#/,w[Math.floor(Math.random() * (w.length - 1))]);
- output = output.replace(/#x#/,x[Math.floor(Math.random() * (x.length - 1))]);
- output = output.replace(/#y#/,y[Math.floor(Math.random() * (y.length - 1))]);
- output = output.replace(/#z#/,z[Math.floor(Math.random() * (z.length - 1))]);
- output = output.replace(/#a#/,a[Math.floor(Math.random() * (a.length - 1))]);
- output = output.replace(/#b#/,b[Math.floor(Math.random() * (b.length - 1))]);
- output = output.replace(/#c#/,c[Math.floor(Math.random() * (c.length - 1))]);
- output = output.replace(/#d#/,d[Math.floor(Math.random() * (d.length - 1))]);
- output = output.replace(/#e#/,e[Math.floor(Math.random() * (e.length - 1))]);
- output = output.replace(/#f#/,f[Math.floor(Math.random() * (f.length - 1))]);
- output = output.replace(/#g#/,g[Math.floor(Math.random() * (g.length - 1))]);
- output = output.replace(/#h#/,h[Math.floor(Math.random() * (h.length - 1))]);
- output = output.replace(/#i#/,i[Math.floor(Math.random() * (i.length - 1))]);
- output = output.replace(/#j#/,j[Math.floor(Math.random() * (j.length - 1))]);
- output = output.replace(/#k#/,k[Math.floor(Math.random() * (k.length - 1))]);
- output = output.replace(/#l#/,l[Math.floor(Math.random() * (l.length - 1))]);
- output = output.replace(/#m#/,m[Math.floor(Math.random() * (m.length - 1))]);
- output = output.replace(/#n#/,n[Math.floor(Math.random() * (n.length - 1))]);
- output = output.replace(/#o#/,o[Math.floor(Math.random() * (o.length - 1))]);
- output = output.replace(/#p#/,p[Math.floor(Math.random() * (p.length - 1))]);
- output = output.replace(/#q#/,q[Math.floor(Math.random() * (q.length - 1))]);
- output = output.replace(/#r#/,r[Math.floor(Math.random() * (r.length - 1))]);
- output = output.replace(/#s#/,s[Math.floor(Math.random() * (s.length - 1))]);
- output = output.replace(/#t#/,t[Math.floor(Math.random() * (t.length - 1))]);
- output = output.replace(/#u#/,u[Math.floor(Math.random() * (u.length - 1))]);
- output = output.replace(/#v#/,v[Math.floor(Math.random() * (v.length - 1))]);
- output = output.replace(/#w#/,w[Math.floor(Math.random() * (w.length - 1))]);
- output = output.replace(/#x#/,x[Math.floor(Math.random() * (x.length - 1))]);
- output = output.replace(/#y#/,y[Math.floor(Math.random() * (y.length - 1))]);
- output = output.replace(/#z#/,z[Math.floor(Math.random() * (z.length - 1))]);
- output = output.replace(/#a#/g,a[Math.floor(Math.random() * (a.length - 1))]);
- output = output.replace(/#b#/g,b[Math.floor(Math.random() * (b.length - 1))]);
- output = output.replace(/#c#/g,c[Math.floor(Math.random() * (c.length - 1))]);
- output = output.replace(/#d#/g,d[Math.floor(Math.random() * (d.length - 1))]);
- output = output.replace(/#e#/g,e[Math.floor(Math.random() * (e.length - 1))]);
- output = output.replace(/#f#/g,f[Math.floor(Math.random() * (f.length - 1))]);
- output = output.replace(/#g#/g,g[Math.floor(Math.random() * (g.length - 1))]);
- output = output.replace(/#h#/g,h[Math.floor(Math.random() * (h.length - 1))]);
- output = output.replace(/#i#/g,i[Math.floor(Math.random() * (i.length - 1))]);
- output = output.replace(/#j#/g,j[Math.floor(Math.random() * (j.length - 1))]);
- output = output.replace(/#k#/g,k[Math.floor(Math.random() * (k.length - 1))]);
- output = output.replace(/#l#/g,l[Math.floor(Math.random() * (l.length - 1))]);
- output = output.replace(/#m#/g,m[Math.floor(Math.random() * (m.length - 1))]);
- output = output.replace(/#n#/g,n[Math.floor(Math.random() * (n.length - 1))]);
- output = output.replace(/#o#/g,o[Math.floor(Math.random() * (o.length - 1))]);
- output = output.replace(/#p#/g,p[Math.floor(Math.random() * (p.length - 1))]);
- output = output.replace(/#q#/g,q[Math.floor(Math.random() * (q.length - 1))]);
- output = output.replace(/#r#/g,r[Math.floor(Math.random() * (r.length - 1))]);
- output = output.replace(/#s#/g,s[Math.floor(Math.random() * (s.length - 1))]);
- output = output.replace(/#t#/g,t[Math.floor(Math.random() * (t.length - 1))]);
- output = output.replace(/#u#/g,u[Math.floor(Math.random() * (u.length - 1))]);
- output = output.replace(/#v#/g,v[Math.floor(Math.random() * (v.length - 1))]);
- output = output.replace(/#w#/g,w[Math.floor(Math.random() * (w.length - 1))]);
- output = output.replace(/#x#/g,x[Math.floor(Math.random() * (x.length - 1))]);
- output = output.replace(/#y#/g,y[Math.floor(Math.random() * (y.length - 1))]);
- output = output.replace(/#z#/g,z[Math.floor(Math.random() * (z.length - 1))]);
- upnext = "Output";
- if(correctInput == "false"){
- output = "No useable input detected. Please only use uppercase letters";
- }
- output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement