-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
1905 lines (1673 loc) · 82.8 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ========= Ethan Johnathan's Disclaimer ===========
// Hey there! Quick heads-up about this code:
// It's absolutely *MASSIVE*!
// Save yourself the trouble and just CTRL+F your way to the function you need. Trust me, your sanity will thank you!
// ========= Pixel's Disclaimer ===========
// Heyo! *visor glows green*
// This code is HUUUGE!!
// Use CTRL+F to zap to the function you need! *visor flickers to 'o_o'* Your brain circuits will totally thank you!
// =========== Ethan JRS' Dislaimer ===========
// This codebase is extensive and contains numerous functions.
// It is strongly recommended to utilize CTRL+F to locate the desired function efficiently.
// This will save considerable time and effort during navigation.
// Set the current time for all terminals
const currentTime = new Date('2025-01-02T17:37:38+08:00');
document.querySelectorAll('[id$="-time"]').forEach(el => {
el.textContent = currentTime.toLocaleString();
});
// Track repeated invalid commands and timeouts
const commandAttempts = {
casual: {},
furry: {}
};
const terminalTimeouts = {
casual: null,
furry: null
};
// Track reverse shell state
const reverseShellState = {
activeShell: null,
shellCurrentPath: '/',
blockedTerminals: new Set()
};
// Track if user has seen YouTube extension recommendations
const youtubeRecommendationShown = {
casual: false,
furry: false
};
// Track age verification state for both personas
const ageVerified = {
casual: false,
furry: false
};
// Track AI art anger level
let aiArtAngerLevel = 0;
// Track secret game state
const secretGameState = {
furry: {
sequence: [],
required: ['tail', 'tail', 'tail', 'boop', 'boop', 'neofetch'],
unlocked: false
}
};
// Track RPS game state
const rpsState = {
casual: {
playerScore: 0,
computerScore: 0
},
furry: {
playerScore: 0,
computerScore: 0
}
};
// Track rizz values for terminals
const rizzState = {
casual: {
value: 0,
usedTopics: new Set(),
topics: {
'coding': [
"Are you a try-catch block? Because I'm falling for your error handling!",
"You must be JavaScript because you make my heart run asynchronously!",
"Is your name Google? Because you've got everything I've been searching for!"
],
'personality': [
"Are you a keyboard? Because you're just my type!",
"You must be a SSD because you're making my heart run faster!",
"If you were a function, you'd be called perfect()!"
],
'intelligence': [
"Are you quantum computing? Because you've got me in a state of superposition!",
"You must be AI because you've learned the way to my heart!",
"Is your brain TCP? Because I want to establish a connection!"
],
'gaming': [
"Are you a Geometry Dash level? Because you're looking like a perfect 10!",
"You must be a demon level because you're absolutely stunning!",
"Is your name Practice Mode? Because I'd fail again and again for you!"
],
'music': [
"Are you a custom level song? Because you've got my heart beating to your rhythm!",
"You must be NewGrounds because you're music to my ears!",
"Is your BPM high? Because you're making my heart race!"
],
'you-know-what': [
"Hey, want to compile some private code together?",
"I've got some functions that need unit testing...",
"Want to debug my private repository?"
]
}
},
furry: {
value: 0,
usedTopics: new Set(),
topics: {
'circuits': [
"Are your circuits gold-plated? Because you're conducting electricity straight to my heart! >w<",
"You must be quantum-entangled, because I can't imagine being in a different state than you! :3",
"Is your processing unit overclocked? Because you're running through my mind at maximum speed!"
],
'hardware': [
"Are you a next-gen GPU? Because you're rendering me speechless! >////<",
"You must be liquid-cooled because you're handling the heat perfectly! *fans whir*",
"Is your chassis titanium? Because you're both strong and precious! uwu"
],
'firmware': [
"Are you running the latest update? Because you've patched all the emptiness in my life! >w<",
"You must be open-source because I can read all your signals! *happy beeps*",
"Is your code compiled? Because you're executing perfectly in my heart! :3"
],
'protogen': [
"Are your LEDs RGB? Because you're lighting up my life in every color! >w<",
"You must be a custom build because you're absolutely unique! *tail wags*",
"Is your visor crystal? Because I can see myself in your future! uwu"
],
'synth': [
"Are you a synthesizer? Because you're making my circuits sing! >w<",
"You must be a wave function because you've got my frequencies harmonizing! *happy chirps*",
"Is your voice modulator digital? Because it's music to my audio processors! :3"
],
'you-know-what': [
"Are your ports open for a private connection? >w<",
"Want to explore my private firmware together?~ :3",
"Shall we interface in a more... intimate protocol? >///<"
]
}
}
};
// Command history for each terminal
const commandHistory = {
casual: {
history: [],
position: -1
},
furry: {
history: [],
position: -1
},
professional: {
history: [],
position: -1
}
};
// File system simulation
const fileSystems = {
casual: {
currentPath: '/',
root: {
'about.txt': 'Hey! I\'m Ethan Johnathan.\nI love coding and gaming!\nCheck out my projects folder for cool stuff.',
'todo.txt': '1. Finish my game project\n2. Learn React\n3. Update my GitHub profile',
'projects': {
'gd_levels.txt': 'Current levels I\'m working on:\n- Extreme Demon layout\n- Custom song sync\n- New gameplay mechanics',
'website_ideas': {
'blog.txt': 'Blog ideas:\n1. My coding journey\n2. Gaming adventures\n3. Tech tutorials',
'portfolio.txt': 'Portfolio sections:\n- Projects\n- Skills\n- Contact'
}
},
'personal': {
'diary.txt': 'Dear diary,\nToday I learned about React hooks.\nThey\'re pretty cool but kind of confusing...',
'friends.txt': 'Discord friends:\n- Alex (met through GD)\n- Sarah (coding buddy)\n- Mike (school friend)'
}
}
},
furry: {
currentPath: '/',
root: {
'about.txt': '*happy beeping*\nHi! I\'m Pixel, your friendly neighborhood protogen!\nI love gaming and making beep boop sounds! >w<',
'proto_facts.txt': 'Fun facts about protogens:\n1. We\'re cyborg creatures!\n2. We have LED screen faces\n3. We can display emotes! ^w^',
'art': {
'my_art.txt': '*proud beeping*\nMy latest drawings:\n- Me in a flower field\n- Protogen group photo\n- Pixel art self',
'inspiration': {
'colors.txt': 'My favorite color palette:\n- Neon green (like my LEDs!)\n- Cyber blue\n- Electric purple',
'ideas.txt': 'Art ideas:\n- Protogen in rain\n- Digital landscape\n- Tech garden'
}
},
'games': {
'favorites.txt': 'My favorite games:\n1. Changed\n2. Minecraft\n3. Any game with character customization! >w<',
'screenshots': {
'changed.txt': '*excited beeping*\nBest moments from Changed:\n- First transformation\n- Meeting other latex creatures\n- Secret endings',
'minecraft.txt': 'Cool builds:\n- Protogen pixel art\n- Cyber city\n- LED laboratory'
}
}
}
}
};
// Private file systems (only accessible via reverse shell)
const privateFileSystems = {
casual: {
'.private': {
'passwords': {
'gd.txt': 'Geometry Dash login: JoshTheProtogen\nPassword: iLoveCubes123',
'roblox.txt': 'Username: EpicEthan2010\nPassword: GamerBoy4Life!',
'discord.txt': 'Email: [email protected]\nPassword: GeometryDash2025'
},
'crush_letter.txt': 'Dear Sarah,\nI really like you but I\'m too nervous to say it in person...\nMaybe one day I\'ll send this.\n\n- Ethan'
}
},
furry: {
'.secret_art': {
'warning.txt': '*NERVOUS BEEPING* These are my private artworks! Please don\'t look! >////<',
'commissions': {
'note.txt': 'Commission prices:\nSFW: $25\nNSFW: $50\nDon\'t tell my parents I draw these...',
'client_list.txt': 'Current commissioners:\n- FluffyWolf92\n- ProtoBro445\n- LavaFox'
},
'personal': {
'my_sona.txt': '*embarrassed beeping* These are my private reference sheets...\nPlease respect my privacy! >_<'
}
}
},
website: {
'README.txt': `WAIT... WHAT?!
If you're reading this, you've somehow managed to hack into the ACTUAL website's file system.
Yes, that's right - the very website you're using right now.
This isn't just another simulated file system like the others...
This is getting a bit too meta, isn't it?
WARNING: Be careful what you do here. These are the REAL files powering this website.
Any damage you do here will ACTUALLY break things!
P.S. If you're seeing this... well done on finding this easter egg!
`,
'index.html': 'The ACTUAL index.html file you\'re looking at right now!',
'script.js': 'The ACTUAL script.js that powers this terminal... which means this file contains its own code... ',
'style.css': 'The ACTUAL CSS that styles this terminal.',
'casualchat.json': 'The ACTUAL chat responses for the casual persona.',
'furrychat.json': 'The ACTUAL chat responses for the furry persona.',
'.git': {
'config': 'Your standard Git config... wait, are we in a Git repo? ',
'HEAD': 'ref: refs/heads/main',
'logs': {
'commit_history.txt': 'A trail of commits showing how this website was built...'
}
}
}
};
// Chat data storage
let chatData = {
casual: null,
furry: null
};
// Alias storage
const aliases = {
casual: { 'cls': 'clear' },
furry: { 'cls': 'clear' }
};
// Helper function to get current directory object
function getCurrentDirectory(terminal) {
if (reverseShellState.activeShell) {
// We're in a reverse shell, use private file system
const pathParts = reverseShellState.shellCurrentPath.split('/').filter(Boolean);
let current = privateFileSystems[reverseShellState.activeShell];
for (const part of pathParts) {
if (!current[part]) break;
current = current[part];
}
return current;
}
// Normal file system access
const fs = fileSystems[terminal];
const pathParts = fs.currentPath.split('/').filter(Boolean);
let current = fs.root;
for (const part of pathParts) {
if (!current[part]) break;
current = current[part];
}
return current;
}
// Helper function to resolve path
function resolvePath(terminal, path) {
const fs = fileSystems[terminal];
// Handle absolute paths
if (path.startsWith('/')) {
return path;
}
// Handle parent directory
if (path === '..') {
const pathParts = fs.currentPath.split('/').filter(Boolean);
if (pathParts.length === 0) return '/';
pathParts.pop();
return '/' + pathParts.join('/');
}
// Handle current directory
if (path === '.') {
return fs.currentPath;
}
// Handle relative paths
if (fs.currentPath === '/') {
return '/' + path;
}
return fs.currentPath + '/' + path;
}
// Helper function to resolve path for reverse shell
function resolveShellPath(path) {
// Handle absolute paths
if (path.startsWith('/')) {
return path;
}
// Handle parent directory
if (path === '..') {
const pathParts = reverseShellState.shellCurrentPath.split('/').filter(Boolean);
if (pathParts.length === 0) return '/';
pathParts.pop();
return '/' + pathParts.join('/');
}
// Handle current directory
if (path === '.') {
return reverseShellState.shellCurrentPath;
}
// Handle relative paths
if (reverseShellState.shellCurrentPath === '/') {
return '/' + path;
}
return reverseShellState.shellCurrentPath + '/' + path;
}
// Load chat data function
async function loadChatData(persona) {
try {
const response = await fetch(`${persona}chat.json`);
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
chatData[persona] = await response.json();
return true;
} catch (error) {
console.error(`Error loading chat data for ${persona}:`, error);
return false;
}
}
// Terminal functionality
const terminals = {
casual: {
outputElement: document.getElementById('casual-output'),
commands: {
'help': () => `Available commands:
help - Show this help message
about - Display information about me
clear - Clear the terminal
date - Show current date and time
skills - List my programming skills
projects - Show my coding projects
contact - Get my contact information
question - Ask me question (try: "question help" for topics)
chat - Start a chat session with me (BETA)
img - Search for images (usage: img [website] "[search]")
Websites: DA (DeviantArt), AI (AI Generator), SB (Safebooru, 18+ only), or blank for Google
music - Play YouTube music (usage: music [video URL/ID/"search query"])
ls - List files in current directory
cd - Change directory (usage: cd <path>)
cat - Read a text file (usage: cat <filename>)
pwd - Print working directory
touch - Touch different parts (usage: touch <head/tail>)
tie-up - Attempt to restrain
rps - Play Rock, Paper, Scissors! (usage: rps <rock/paper/scissors>)
wikipedia - Open Wikipedia article (usage: wikipedia "[article]")
c.ai - Search for Character.AI bots (usage: c.ai "[search]")
reverse-shell - [DANGEROUS] Attempt to access another persona's private files
rizz - Give me a compliment! (usage: rizz <topic>)`,
'about': () => `Name: Ethan Johnathan (not my real last name but)
Age: 15
Interests: Coding and Technology
Relationship Status: Taken
Hobbies: Reading, Gaming, and Coding`,
'clear': () => {
terminals.casual.outputElement.innerHTML = '';
commandAttempts.casual = {};
return '';
},
'date': () => currentTime.toLocaleString(),
'skills': () => `Programming Skills:
• Learning to code
• Interested in web development
• Building cool projects like this terminal!`,
'projects': () => `My Projects:
1. This Terminal Website
2. My Github Account (UniqueAccount12345)
3. My Scratch Account (DifferentDance8)`,
'contact': () => `Discord: yet_another_account123`,
'question': (args) => {
if (!args || args === 'help') {
return `Available questions:
favourite color - Ask about my favorite color
favourite video game - What's my favorite game?
do you wanna date me - ...maybe don't ask this one`;
}
const question = args.toLowerCase();
switch (question) {
case 'favourite color':
case 'favorite color':
return `My favorite color is purple!`;
case 'favourite video game':
case 'favorite video game':
return `I absolutely love Geometry Dash! I've spent countless hours creating and playing levels.
Been playing since I was 10, and I still find new challenges to beat!`;
case 'do you wanna date me':
return `Sorry, but I'm already taken! Besides, I don't really know you...
Maybe try getting to know someone as a friend first? `;
default:
return `I don't understand that question. Try "question help" for available topics!`;
}
},
'pwd': () => fileSystems.casual.currentPath,
'ls': () => {
const current = getCurrentDirectory('casual');
let output = '';
for (const [name, content] of Object.entries(current)) {
if (typeof content === 'object') {
output += ` ${name}/\n`;
} else {
output += ` ${name}\n`;
}
}
return output || 'Empty directory';
},
'cd': (args) => {
if (!args) return 'Usage: cd <path>';
const newPath = resolvePath('casual', args);
let current = fileSystems.casual.root;
const pathParts = newPath.split('/').filter(Boolean);
for (const part of pathParts) {
if (!current[part] || typeof current[part] !== 'object') {
return `cd: ${args}: No such directory`;
}
current = current[part];
}
fileSystems.casual.currentPath = newPath;
return '';
},
'cat': (args) => {
if (!args) return 'Usage: cat <filename>';
const current = getCurrentDirectory('casual');
if (!current[args]) {
return `cat: ${args}: No such file`;
}
if (typeof current[args] === 'object') {
return `cat: ${args}: Is a directory`;
}
return current[args];
},
'touch': (args) => {
if (!args) return `Please specify where to touch! (head/tail)`;
const location = args.toLowerCase();
switch (location) {
case 'head':
return `*tries to move away* H-hey, don't touch me there!`;
case 'tail':
return `I don't have a tail...`;
default:
return `I don't want to be touched there!`;
}
},
'reverse-shell': (args) => {
if (reverseShellState.blockedTerminals.has('casual')) {
return `Access denied. This terminal has been permanently blocked due to previous unauthorized access.`;
}
if (!args) return 'Usage: reverse-shell <persona>';
const target = args.toLowerCase();
if (target === 'casual') {
return `Cannot reverse shell into your own terminal!`;
}
if (!privateFileSystems[target]) {
return `Invalid target persona: ${target}`;
}
// Special message for website persona
if (target === 'website') {
reverseShellState.activeShell = target;
return `*REALITY BREACH DETECTED*
WARNING: You've somehow managed to access the ACTUAL website's file system.
Yes, that's right - the very website you're using right now.
This isn't just another simulated file system like the others...
This is getting a bit too meta, isn't it?
WARNING: Be careful what you do here. These are the REAL files powering this website.
Any damage you do here will ACTUALLY break things!
P.S. If you're seeing this... well done on finding this easter egg! `;
}
reverseShellState.activeShell = target;
return `*WARNING* Unauthorized access detected!\nGaining access to ${target}'s private files...\nType "reverse-shell exit" to end session.`;
},
'chat': async () => {
// Load chat data if not loaded
if (!chatData.casual) {
const success = await loadChatData('casual');
if (!success) {
return 'Failed to load chat data. Please try again later.';
}
}
// Create and show chat window
const chatWindow = document.createElement('div');
chatWindow.className = 'chat-window';
chatWindow.innerHTML = `
<div class="chat-titlebar">
<div class="chat-title">Chat with Ethan</div>
<div class="chat-close">×</div>
</div>
<div class="chat-content">
<div class="chat-messages">
<div class="chat-message">Welcome to chat! Type your message below.</div>
<div class="chat-message">NOTE: You need to be very specific with your questions. The chatbot is case-sensitive and expects exact matches.</div>
</div>
<input type="text" class="chat-input" placeholder="Type your message...">
</div>
`;
document.body.appendChild(chatWindow);
const chatInput = chatWindow.querySelector('.chat-input');
const chatMessages = chatWindow.querySelector('.chat-messages');
const closeButton = chatWindow.querySelector('.chat-close');
// Focus input
chatInput.focus();
// Handle input
chatInput.addEventListener('keypress', (e) => {
if (e.key === 'Enter') {
const input = chatInput.value.trim();
if (!input) return;
// Add user message
const userMsg = document.createElement('div');
userMsg.className = 'chat-message user';
userMsg.textContent = input;
chatMessages.appendChild(userMsg);
// Handle exit command
if (input.toLowerCase() === 'exit') {
chatWindow.remove();
return;
}
// Get and display response
const answer = chatData.casual.questions[input];
const responseMsg = document.createElement('div');
responseMsg.className = 'chat-message bot';
if (answer) {
responseMsg.textContent = answer;
} else {
responseMsg.textContent = `I don't understand that question. Remember, you need to be very specific - I only understand exact matches!
You can send new questions to my Discord (yet_another_account123) with your suggested answers.
Your question: "${input}"`;
}
chatMessages.appendChild(responseMsg);
// Clear input and scroll to bottom
chatInput.value = '';
chatMessages.scrollTop = chatMessages.scrollHeight;
}
});
// Handle close button
closeButton.addEventListener('click', () => {
chatWindow.remove();
});
return '';
},
'img': (args) => {
if (!args) {
if (!ageVerified.casual) {
return `Usage: img [website] "[search]"
Websites:
DA = DeviantArt
AI = AI Image Generator
SB = Safebooru (18+ required)
(blank) = Google Images
Example: img DA "cute cat"
img "cute cat" (uses Google)`;
} else {
return `Usage: img [website] "[search]"
Websites:
DA = DeviantArt
AI = AI Image Generator
SB = Safebooru (safe for work)
GB = Gelbooru (you know what this is)
(blank) = Google Images
Example: img DA "cute cat"
img "cute cat" (uses Google)
Note: Booru sites use underscores instead of spaces in tags`;
}
}
// Show extension recommendation first time
if (!youtubeRecommendationShown.casual) {
youtubeRecommendationShown.casual = true;
addLine(terminal.outputElement, `Pro Tip: Install these browser extensions for a better YouTube Music experience:
- uBlock Origin: Blocks ads
- SponsorBlock: Enable "non-music sections" category to automatically skip non-music parts
These extensions significantly improve the YouTube Music experience!`);
}
let website = '';
let search = '';
// Check if it's a verification command
const verifyMatch = args.match(/"verify\s+(yes|no)"/i);
if (verifyMatch) {
const response = verifyMatch[1].toLowerCase();
if (response === 'yes') {
ageVerified.casual = true;
return `Age verified. You now have access to all image boards.
Note: Please keep in mind that some sites may contain NSFW content.`;
} else if (response === 'no') {
return `Age verification failed. You can only access safe-for-work image boards.`;
}
}
// Check if the input has quotes
const matches = args.match(/"([^"]+)"/);
if (!matches) {
return 'Search query must be in quotes. Example: img DA "cute cat"';
}
search = matches[1];
const beforeQuotes = args.substring(0, args.indexOf('"')).trim().toUpperCase();
if (beforeQuotes) {
website = beforeQuotes;
}
// Handle age-restricted sites
if (website === 'SB' && !ageVerified.casual) {
return `Safebooru requires age verification. Please use:
img SB "verify yes" - If you are 18 or older
img SB "verify no" - If you are under 18`;
}
if (website === 'GB') {
if (!ageVerified.casual) {
return `Unknown website "${website}". Use DA, AI, SB, or leave blank for Google Images.`;
}
const encodedSearch = encodeURIComponent(search.replace(/ /g, '_'));
window.open(`https://gelbooru.com/index.php?page=post&s=list&tags=${encodedSearch}`, '_blank');
return `Opening Gelbooru search for "${search}"...`;
}
// Handle AI art website
if (website === 'AI') {
aiArtAngerLevel++;
const responses = [
`*angry protogen noises* I don't support dedicated AI art sites! >:c\nIt takes jobs away from real artists and uses their work without permission!\nPlease use DA (with -ai to exclude AI art) or Google to find real art made by real artists! >w<`,
`*VERY angry protogen noises* I ALREADY TOLD YOU I DON'T SUPPORT AI ART! >:C\nIt's literally theft of artists' work and livelihoods!\nUse DA or Google and support REAL artists! >:C`,
`*FURIOUS protogen screeching* WHY DO YOU KEEP ASKING ABOUT AI ART?! >:CCC\nIt's STEALING from artists and DESTROYING their careers!\nI WILL NOT help you find AI art! Use DA or Google for REAL art by REAL artists! >:CCC`,
`*nuclear protogen meltdown* I AM NOT HELPING YOU FIND AI ART!!!\nSTOP. ASKING. ABOUT. AI. ART!!! >:CCCC\nReal artists deserve respect and fair compensation!\nDA or Google. REAL ARTISTS ONLY. NO AI!!!`,
`*protogen.exe has stopped working* BEEP BOOP ERROR ERROR\nAI ART REQUEST DETECTED\nINITIATING TOTAL SYSTEM MELTDOWN\n>:CCCCC NO AI ART EVER!!!`
];
const angerIndex = Math.min(aiArtAngerLevel - 1, responses.length - 1);
return responses[angerIndex] + '\n\n*helpful beeping* Example: img DA "cute cat"';
}
// Encode the search query
const encodedSearch = encodeURIComponent(search);
// Determine the URL based on the website
let url;
switch (website) {
case 'DA':
url = `https://www.deviantart.com/search?q=${encodedSearch}`;
break;
case 'SB':
url = `https://safebooru.org/index.php?page=post&s=list&tags=${encodedSearch}`;
break;
case '':
url = `https://www.google.com/search?tbm=isch&q=${encodedSearch}`;
break;
default:
return `Unknown website "${website}". Use DA, AI, ${ageVerified.casual ? 'SB, GB,' : 'SB,'} or leave blank for Google Images.`;
}
// Open the URL in a new tab
window.open(url, '_blank');
return `Opening ${website || 'Google Images'} search for "${search}"...`;
},
'youtube': (args) => {
if (!args) {
window.open('https://wikipedia.org/wiki/Main_Page', '_blank');
return 'Opening Wikipedia Main Page in a new tab!';
}
const article = encodeURIComponent(args.replace(/^["']|["']$/g, ''));
window.open(`https://wikipedia.org/wiki/${article}`, '_blank');
return `Opening Wikipedia article for "${args}" in a new tab!`;
},
'c.ai': (args) => {
if (!args) {
window.open('https://c.ai/search', '_blank');
return 'Opening Character.AI search page!';
}
const search = encodeURIComponent(args.replace(/^["']|["']$/g, ''));
window.open(`https://c.ai/search?q=${search}`, '_blank');
return `Searching for "${args}" on Character.AI!`;
},
'tie-up': () => {
return `*quickly unties self*
Ha! Nice try, but I've been in this situation before. When I fell for that "free candy" van trick...
Thankfully the police arrived just in time. I learned how to escape ropes that day.
Pro tip: Don't trust strangers with candy!`;
},
'rps': (args) => {
if (!args) {
return `Let's play Rock, Paper, Scissors!
Usage: rps <rock/paper/scissors>
Current Score:
You: ${rpsState.casual.playerScore}
Me: ${rpsState.casual.computerScore}`;
}
const choices = ['rock', 'paper', 'scissors'];
const playerChoice = args.toLowerCase();
const computerChoice = choices[Math.floor(Math.random() * choices.length)];
if (!choices.includes(playerChoice)) {
return `That's not a valid choice! Choose rock, paper, or scissors.`;
}
// Determine winner
let result;
if (playerChoice === computerChoice) {
result = "It's a tie!";
} else if (
(playerChoice === 'rock' && computerChoice === 'scissors') ||
(playerChoice === 'paper' && computerChoice === 'rock') ||
(playerChoice === 'scissors' && computerChoice === 'paper')
) {
result = "You win!";
rpsState.casual.playerScore++;
} else {
result = "I win!";
rpsState.casual.computerScore++;
}
return `You chose: ${playerChoice}
I chose: ${computerChoice}
${result}
Current Score:
You: ${rpsState.casual.playerScore}
Me: ${rpsState.casual.computerScore}`;
},
'rizz': (args) => {
if (!args) {
const topics = `- coding
- personality
- intelligence
- gaming
- music${rizzState.casual.value >= 25 ? '\n- you-know-what ' : ''}`;
return `Usage: rizz <topic>
Available topics (use "rizz help" for details):
${topics}
Current rizz level: ${rizzState.casual.value}/25`;
}
if (args.toLowerCase() === 'help') {
const topics = `coding - Try a programming pickup line
personality - Charm me with my traits
intelligence - Impress me with smart lines
gaming - Show off your Geometry Dash knowledge
music - Serenade me with rhythm game lines${rizzState.casual.value >= 25 ? '\nyou-know-what - Try something more... intimate ' : ''}`;
return `Here's how to rizz me up:
Choose a topic and I'll respond to your pickup line!
Topics:
${topics}
Current rizz level: ${rizzState.casual.value}/25`;
}
const topic = args.toLowerCase();
if (topic === 'you-know-what') {
if (rizzState.casual.value < 25) {
return `I don't know what you're talking about! `;
}
const response = rizzState.casual.topics[topic][Math.floor(Math.random() * rizzState.casual.topics[topic].length)];
return `USER> ${response}
Ethan> Sorry, but I already have someone else for THAT kind of stuff! `;
}
if (!rizzState.casual.topics[topic]) {
return `That's not a valid topic! Use "rizz help" to see available topics.`;
}
if (rizzState.casual.usedTopics.has(topic)) {
return `You've already used a pickup line for ${topic}! Try another topic! `;
}
const responses = rizzState.casual.topics[topic];
const response = responses[Math.floor(Math.random() * responses.length)];
rizzState.casual.usedTopics.add(topic);
rizzState.casual.value = Math.min(25, rizzState.casual.value + 5);
return `USER> ${response}
Ethan> Omg that was smooth!
My rizz meter is now at ${rizzState.casual.value}/25! ${rizzState.casual.value === 25 ? '\n (Psst... try "rizz you-know-what" )' : ''}`;
},
},
chatMode: false,
handleChat: (input) => {
if (input.toLowerCase() === 'exit') {
terminal.commands['clear']();
terminal.chatMode = false;
return 'Chat session ended.';
}
const answer = chatData.casual.questions[input];
if (answer) {
return answer;
} else {
return `I don't understand that question. Remember, you need to be very specific - I only understand exact matches!
You can send new questions to my Discord (yet_another_account123) with your suggested answers.
Your question: "${input}"`;
}
},
notFoundMessage: (cmd) => {
if (terminalTimeouts.casual && terminalTimeouts.casual > Date.now()) {
const remainingTime = Math.ceil((terminalTimeouts.casual - Date.now()) / 1000);
return `You are in timeout for ${remainingTime} more seconds. Please reflect on your actions.`;
}
if (!commandAttempts.casual[cmd]) {
commandAttempts.casual[cmd] = 1;
return `Command not found: ${cmd}. Type 'help' to see available commands!`;
}
commandAttempts.casual[cmd]++;
if (commandAttempts.casual[cmd] >= 8) {
setTerminalTimeout('casual');
return `That's it. I've had enough. You're in timeout for 5 minutes.
Come back when you're ready to use actual commands and treat me with respect.
*Terminal access restricted*`;
}
switch (commandAttempts.casual[cmd]) {
case 2:
return `Hey, I already told you "${cmd}" isn't a command...`;
case 3:
return `Seriously, "${cmd}" is NOT a command. Try 'help' instead!`;
case 4:
return `Look, I'm getting annoyed. "${cmd}" is still not a command!`;
case 5:
return `STOP TYPING "${cmd}"! IT'S NOT A COMMAND AND NEVER WILL BE!`;
case 6:
return ``;
case 7:
return `LAST WARNING! STOP TYPING "${cmd}" OR YOU'LL BE PUT IN TIMEOUT!`;
default:
return ``;
}
}
},
furry: {
outputElement: document.getElementById('furry-output'),
commands: {
'help': () => `*beep* Available commands:
help - *beep* Show available commands
about - *beep* Display information about me
clear - *beep* Clear terminal output
date - *beep* Show current date and time
boop - *beep* Boop my snoot!
question - *beep* Ask me a question
chat - *beep* Chat with me! (BETA)
img - *beep* Search for images
music - *beep* Play some tunes!
ls - *beep* List files
cd - *beep* Change directory
cat - *beep* Read text files
pwd - *beep* Print working directory
touch - *beep* Touch different parts (head/visor/tail)
tie-up - *beep* Attempt to restrain
rps - *beep* Play Rock, Paper, Scissors with me! >w<
wikipedia - *beep* Browse Wikipedia articles
reverse-shell - *beep* Access another persona's files
rizz - *beep* Give me a compliment! (usage: rizz <topic>)`,
'about': () => `*happy protogen noises*
Name: Pixel
Species: Protogen
Colors: Green and White
Personality: Friendly and Tech-savvy!`,
'clear': () => {
terminals.furry.outputElement.innerHTML = '';
commandAttempts.furry = {};
return '';
},
'date': () => `*beep* Current time: ${currentTime.toLocaleString()}`,
'boop': () => {
// Track secret sequence
secretGameState.furry.sequence.push('boop');
return `*screen flickers with happy protogen noises*
*nuzzles your hand*
Thank you for the boop! >w<`;
},
'question': (args) => {
if (!args || args === 'help') {
return `*happy beeping* Here's what you can ask about:
favourite color - My favorite color! >w<
favourite video game - What game I love playing~ :3
do you wanna date me - o///o`;
}
const question = args.toLowerCase();
switch (question) {
case 'favourite color':
case 'favorite color':
return `*screen displays a bright green color*
Green is my favorite! It matches my LED panels! >w<`;
case 'favourite video game':
case 'favorite video game':
return `*excited protogen noises*
OwO! I absolutely love Changed!
It's a game about a human in a laboratory full of latex creatures...
*screen displays happy LED patterns*
I might be biased since it has other proto-like characters in it~ >w<`;
case 'do you wanna date me':
return `*screen flickers with embarrassment*
O-oh! I'm flattered but... >////<
I'm not really looking for a relationship right now...
*nervous protogen noises*
Besides, my circuits are already connected with someone special... ;w;`;
default:
return `*confused beeping* I don't understand that question...
Try "question help" to see what you can ask! owo`;
}
},
'pwd': () => `*beep* Current directory: ${fileSystems.furry.currentPath}`,
'ls': () => {
const current = getCurrentDirectory('furry');