-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
1988 lines (1783 loc) · 87.3 KB
/
script.js
File metadata and controls
1988 lines (1783 loc) · 87.3 KB
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
// Main JavaScript for DTEmpire Documentation Website
document.addEventListener('DOMContentLoaded', function() {
console.log('DTEmpire Documentation initialized');
// Ensure content body exists
ensureContentBody();
// Setup navigation event listeners
setupNavigation();
// Initialize the home page
loadHome();
// Update server time
updateServerTime();
setInterval(updateServerTime, 1000);
// Set up terminal functionality
setupTerminal();
// Add matrix rain effect background
createMatrixEffect();
// Add hover animations
setupHoverAnimations();
// Add typing animation to welcome text
setTimeout(() => typeWelcomeText(), 500);
// Start particle animation
startParticleAnimation();
// Add scroll animations
setupScrollAnimations();
});
// Ensure content body exists
function ensureContentBody() {
let contentBody = document.getElementById('content-body');
if (!contentBody) {
const contentMain = document.querySelector('.content');
if (contentMain) {
contentBody = document.createElement('div');
contentBody.id = 'content-body';
contentBody.className = 'content-body';
contentMain.appendChild(contentBody);
}
}
return contentBody;
}
// Setup navigation event listeners
function setupNavigation() {
// Add click handlers to all navigation links
const navLinks = {
'nav-home': loadHome,
'nav-status': loadStatus,
'nav-discord': loadDiscord,
'nav-lavalink': loadLavalink,
'nav-music-bot': loadMusicBot,
'nav-image-api': loadImageAPI,
'nav-game-servers': loadGameServers,
'nav-websites': loadWebsites,
'nav-api': loadAPI,
'nav-dtempire-bot': loadDTEmpireBot,
'nav-invite': loadInvite,
'nav-github': loadGitHub
};
Object.keys(navLinks).forEach(linkId => {
const link = document.getElementById(linkId);
if (link) {
link.addEventListener('click', function(e) {
e.preventDefault();
navLinks[linkId]();
setActiveNav(linkId.replace('nav-', ''));
});
}
});
}
// Setup hover animations
function setupHoverAnimations() {
// Glow effect on DTEmpire text
document.addEventListener('mouseover', function(e) {
if (e.target.classList.contains('glow-text') ||
e.target.classList.contains('highlight') ||
e.target.classList.contains('card-title') ||
e.target.closest('.logo') ||
e.target.closest('.nav-section a')) {
if (e.target.closest('.logo') || e.target.classList.contains('glow-text')) {
document.querySelectorAll('.logo h1, .logo-dt, .logo-empire').forEach(el => {
el.classList.add('glow-active');
setTimeout(() => el.classList.remove('glow-active'), 500);
});
}
}
});
// Card hover animations with glow
document.addEventListener('mouseover', function(e) {
const card = e.target.closest('.card, .server-card, .discord-link-card');
if (card) {
card.classList.add('hover-glow');
card.style.transform = 'translateY(-8px) scale(1.03)';
}
});
document.addEventListener('mouseout', function(e) {
const card = e.target.closest('.card, .server-card, .discord-link-card');
if (card) {
card.classList.remove('hover-glow');
card.style.transform = 'translateY(0) scale(1)';
}
});
// Button hover effects
document.addEventListener('mouseover', function(e) {
const btn = e.target.closest('.btn, .card-link, .nav-section a');
if (btn) {
btn.classList.add('pulse-once');
setTimeout(() => btn.classList.remove('pulse-once'), 300);
}
});
}
// Setup scroll animations
function setupScrollAnimations() {
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate-in');
if (entry.target.classList.contains('stat-value') && entry.target.dataset.count) {
animateCounter(entry.target);
}
}
});
}, observerOptions);
// Observe elements for animation
document.querySelectorAll('.card, .stat-item, .welcome-section, .discord-section').forEach(el => {
observer.observe(el);
});
}
// Typing animation for welcome text
function typeWelcomeText() {
const welcomeText = "Welcome to DTEmpire Documentation";
const welcomeElement = document.querySelector('.welcome-section h2');
if (welcomeElement && !welcomeElement.dataset.typed) {
welcomeElement.dataset.typed = 'true';
let i = 0;
const typing = setInterval(() => {
if (i < welcomeText.length) {
welcomeElement.innerHTML = welcomeText.substring(0, i + 1) + '<span class="typing-cursor">|</span>';
i++;
} else {
clearInterval(typing);
setTimeout(() => {
welcomeElement.innerHTML = welcomeText;
welcomeElement.classList.add('typed-complete');
}, 1000);
}
}, 50);
}
}
// Start particle animation
function startParticleAnimation() {
const container = document.querySelector('.content');
if (!container) return;
for (let i = 0; i < 20; i++) {
createParticle(container);
}
}
function createParticle(container) {
const particle = document.createElement('div');
particle.className = 'particle';
particle.style.left = Math.random() * 100 + 'vw';
particle.style.top = Math.random() * 100 + 'vh';
particle.style.animationDuration = (Math.random() * 5 + 3) + 's';
particle.style.opacity = Math.random() * 0.5 + 0.2;
container.appendChild(particle);
setTimeout(() => {
particle.remove();
createParticle(container);
}, parseFloat(particle.style.animationDuration) * 1000);
}
// Animate counter numbers
function animateCounter(element) {
if (element.dataset.animated) return;
element.dataset.animated = 'true';
const target = parseFloat(element.dataset.count);
const suffix = element.textContent.includes('%') ? '%' : element.textContent.includes('+') ? '+' : '';
const isDecimal = target % 1 !== 0;
let start = 0;
const duration = 1500;
const increment = target / (duration / 16);
const timer = setInterval(() => {
start += increment;
if (start >= target) {
element.textContent = isDecimal ? target.toFixed(1) + suffix : Math.floor(target) + suffix;
clearInterval(timer);
element.classList.add('counted');
} else {
element.textContent = isDecimal ? start.toFixed(1) + suffix : Math.floor(start) + suffix;
}
}, 16);
}
// Load home page content
function loadHome() {
const contentBody = ensureContentBody();
const breadcrumb = document.getElementById('breadcrumb');
if (breadcrumb) breadcrumb.textContent = 'Home / Introduction';
contentBody.innerHTML = `
<div class="home-content">
<section class="welcome-section animate-on-scroll">
<h2 class="type-animation">DTEmpire Documentation</h2>
<p>Welcome to the official documentation hub for <span class="highlight glow-text">DTEmpire</span>, a comprehensive suite of gaming, development, and hosting services built for the modern digital era.</p>
<p>Here you'll find documentation, API references, setup guides, and status information for all DTEmpire services.</p>
<div class="floating-icons">
<i class="fas fa-robot pulse"></i>
<i class="fas fa-server pulse"></i>
<i class="fas fa-code pulse"></i>
<i class="fas fa-gamepad pulse"></i>
</div>
</section>
<div class="quick-links animate-on-scroll">
<a href="http://dsc.gg/dtempire-server" target="_blank" class="quick-link pulse">
<i class="fab fa-discord"></i>
<span>Join Discord Server</span>
</a>
<a href="http://dsc.gg/dtempire" target="_blank" class="quick-link pulse">
<i class="fas fa-robot"></i>
<span>Invite DTEmpire Bot</span>
</a>
<a href="http://dsc.gg/dtempire-music" target="_blank" class="quick-link pulse">
<i class="fas fa-music"></i>
<span>Invite Music Bot</span>
</a>
<a href="https://live-monitor.ankitgupta.com.np/" target="_blank" class="quick-link pulse">
<i class="fas fa-chart-line"></i>
<span>Live Status</span>
</a>
</div>
<div class="grid-container">
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-server pulse"></i></div>
<h3 class="card-title">Live Status Monitor</h3>
</div>
<div class="card-content">
<p>Check the real-time status of all DTEmpire services including Lavalink servers, game servers, APIs, and websites.</p>
<p>Monitor uptime, response times, and service health from our dedicated status dashboard.</p>
<a href="https://live-monitor.ankitgupta.com.np/" target="_blank" class="card-link pulse">
View Status Dashboard <i class="fas fa-external-link-alt"></i>
</a>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-robot pulse"></i></div>
<h3 class="card-title">Discord Bots</h3>
</div>
<div class="card-content">
<p>Comprehensive documentation for our Discord music bots, moderation tools, and utility bots.</p>
<p>Learn how to invite, configure, and make the most of our bot ecosystem.</p>
<a href="#discord" class="card-link pulse">
Explore Discord Bots <i class="fas fa-arrow-right"></i>
</a>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-code pulse"></i></div>
<h3 class="card-title">API Documentation</h3>
</div>
<div class="card-content">
<p>Access our Image Generation API, Lavalink API, and other developer tools.</p>
<p>Full API reference with code examples, authentication guides, and rate limiting information.</p>
<a href="#api" class="card-link pulse">
View API Docs <i class="fas fa-arrow-right"></i>
</a>
</div>
</div>
</div>
<section class="stats-section animate-on-scroll">
<h3 class="stats-title"><i class="fas fa-chart-line pulse"></i> Quick Stats</h3>
<div class="stats-grid">
<div class="stat-item">
<div class="stat-value" data-count="15">20+</div>
<div class="stat-label">Active Services</div>
</div>
<div class="stat-item">
<div class="stat-value" data-count="99.9">98.2%</div>
<div class="stat-label">Uptime Average</div>
</div>
<div class="stat-item">
<div class="stat-value" data-count="2000">100+</div>
<div class="stat-label">Discord Users</div>
</div>
<div class="stat-item">
<div class="stat-value">24/7</div>
<div class="stat-label">Monitoring</div>
</div>
</div>
</section>
<section class="discord-section animate-on-scroll">
<div class="discord-header">
<div class="discord-icon"><i class="fab fa-discord pulse"></i></div>
<div>
<h2 class="glow-text">Join Our Discord Community</h2>
<p>Get support, participate in discussions, and stay updated with announcements</p>
</div>
</div>
<div class="discord-content">
<div class="discord-info">
<h3>DTEmpire Discord Server</h3>
<p>Connect with other users, get technical support, suggest features, and participate in community events. Our Discord server is the central hub for all things DTEmpire.</p>
<p><strong>Features:</strong> Live support channels, announcement feed, bot testing, community showcases, and developer discussions.</p>
<div class="discord-links">
<div class="link-item">
<i class="fas fa-users pulse"></i>
<strong>Server Invite:</strong> <a href="http://dsc.gg/dtempire-server" target="_blank" class="glow-link pulse">http://dsc.gg/dtempire-server</a>
</div>
<div class="link-item">
<i class="fas fa-robot pulse"></i>
<strong>Official Bot:</strong> <a href="http://dsc.gg/dtempire" target="_blank" class="glow-link pulse">http://dsc.gg/dtempire</a>
</div>
<div class="link-item">
<i class="fas fa-music pulse"></i>
<strong>Music Bot:</strong> <a href="http://dsc.gg/dtempire-music" target="_blank" class="glow-link pulse">http://dsc.gg/dtempire-music</a>
</div>
</div>
</div>
<div class="discord-actions">
<button class="btn btn-discord pulse" onclick="inviteToDiscord()">
<i class="fab fa-discord"></i> Join Discord
</button>
<button class="btn btn-hack pulse" onclick="inviteBot()">
<i class="fas fa-robot"></i> Invite Official Bot
</button>
</div>
</div>
</section>
<section class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-user-secret pulse"></i></div>
<h3 class="card-title">About DTEmpire</h3>
</div>
<div class="card-content">
<p>DTEmpire is a passion project created by a team of developers and gamers who believe in building reliable, high-performance services for the community. Our mission is to provide top-tier gaming, music, and development tools that are accessible to everyone.</p>
<p><strong>Owner & Lead Developer:</strong> Ankit Gupta</p>
<p><strong>Established:</strong> 2022</p>
<p><strong>Philosophy:</strong> Open, transparent, and community-driven development with a focus on performance and reliability.</p>
<div class="signature">
<span class="signature-text">- DTEmpire Team</span>
</div>
</div>
</section>
</div>
`;
setActiveNav('home');
// Reattach scroll animations
setTimeout(() => setupScrollAnimations(), 100);
}
// Load Lavalink v4 documentation
function loadLavalink() {
const contentBody = ensureContentBody();
const breadcrumb = document.getElementById('breadcrumb');
if (breadcrumb) breadcrumb.textContent = 'Documentation / Lavalink v4';
contentBody.innerHTML = `
<div class="home-content">
<section class="welcome-section animate-on-scroll">
<h2><i class="fas fa-music pulse"></i> Lavalink v4 Server</h2>
<p>Free Lavalink server provided by DTEmpire for music bots and audio streaming applications.</p>
</section>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-server pulse"></i></div>
<h3 class="card-title">Server Information</h3>
</div>
<div class="card-content">
<div class="code-block typing-code">
<div class="code-header">
<span>Lavalink Configuration</span>
<button class="btn-copy pulse" onclick="copyToClipboard(this)">Copy</button>
</div>
<pre><code class="type-animation">{
"host": "panel.ankitgupta.com.np",
"password": "DTEmpire",
"port": 25574,
"secure": false
}</code></pre>
</div>
<div class="info-grid">
<div class="info-item pulse">
<i class="fas fa-globe"></i>
<strong>Host:</strong> <span class="glow-text">panel.ankitgupta.com.np</span>
</div>
<div class="info-item pulse">
<i class="fas fa-plug"></i>
<strong>Port:</strong> <span class="glow-text">25574</span>
</div>
<div class="info-item pulse">
<i class="fas fa-key"></i>
<strong>Password:</strong> <span class="glow-text">DTEmpire</span>
</div>
<div class="info-item pulse">
<i class="fas fa-link"></i>
<strong>Connection:</strong> <span class="glow-text">panel.ankitgupta.com.np:25574</span>
</div>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-book pulse"></i></div>
<h3 class="card-title">How to Connect</h3>
</div>
<div class="card-content">
<h4>JavaScript (discord.js)</h4>
<div class="code-block typing-code">
<div class="code-header">
<span>Example Connection Code</span>
<button class="btn-copy pulse" onclick="copyToClipboard(this)">Copy</button>
</div>
<pre><code class="type-animation">// Discord.js v14 Example
const { Client, GatewayIntentBits } = require('discord.js');
const { Player } = require('discord-player');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates
]
});
// Create player
const player = new Player(client);
// Add Lavalink node
player.nodes.add({
host: 'panel.ankitgupta.com.np',
port: 25574,
password: 'DTEmpire',
secure: false,
identifier: 'DTEmpire-Lavalink'
});
client.on('ready', () => {
console.log('Connected to DTEmpire Lavalink!');
});</code></pre>
</div>
<h4>Python (wavelink)</h4>
<div class="code-block">
<pre><code>import wavelink
import discord
# Connect to Lavalink
async def connect_lavalink():
nodes = [wavelink.Node(
uri='http://panel.ankitgupta.com.np:25574',
password='DTEmpire'
)]
await wavelink.Pool.connect(
nodes=nodes,
client=bot,
cache_capacity=100
)</code></pre>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-chart-line pulse"></i></div>
<h3 class="card-title">Live Status & Monitoring</h3>
</div>
<div class="card-content">
<p>Check the real-time status of our Lavalink server:</p>
<div class="status-link pulse">
<i class="fas fa-external-link-alt"></i>
<a href="https://lavalink.ankitgupta.com.np/" target="_blank" class="glow-link">https://lavalink.ankitgupta.com.np/</a>
</div>
<p>For overall service status including Lavalink, visit:</p>
<div class="status-link pulse">
<i class="fas fa-external-link-alt"></i>
<a href="https://live-monitor.ankitgupta.com.np/" target="_blank" class="glow-link">https://live-monitor.ankitgupta.com.np/</a>
</div>
</div>
</div>
</div>
`;
setActiveNav('lavalink');
setTimeout(() => typeCodeAnimations(), 300);
setTimeout(() => setupScrollAnimations(), 100);
}
// Load Music Bot documentation
function loadMusicBot() {
const contentBody = ensureContentBody();
const breadcrumb = document.getElementById('breadcrumb');
if (breadcrumb) breadcrumb.textContent = 'Documentation / Music Bot';
contentBody.innerHTML = `
<div class="home-content">
<section class="welcome-section animate-on-scroll">
<h2><i class="fas fa-music pulse"></i> DTEmpire Music Bot</h2>
<p>High-quality Discord music bot with advanced features and Lavalink support.</p>
</section>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-robot pulse"></i></div>
<h3 class="card-title">Invite Links</h3>
</div>
<div class="card-content">
<div class="invite-grid">
<div class="invite-item pulse">
<i class="fab fa-discord"></i>
<h4>Music Bot</h4>
<p>Dedicated music bot with premium audio quality</p>
<button class="btn btn-hack pulse" onclick="inviteMusicBot()">
<i class="fas fa-music"></i> Invite Music Bot
</button>
<div class="invite-link">
<code class="glow-text">http://dsc.gg/dtempire-music</code>
</div>
</div>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-sliders-h pulse"></i></div>
<h3 class="card-title">Features</h3>
</div>
<div class="card-content">
<div class="features-grid">
<div class="feature pulse">
<i class="fas fa-play-circle"></i>
<h4>High Quality Audio</h4>
<p>Premium 128kbps audio streaming</p>
</div>
<div class="feature pulse">
<i class="fab fa-youtube"></i>
<h4>Multi-Platform</h4>
<p>YouTube, Spotify, SoundCloud support</p>
</div>
<div class="feature pulse">
<i class="fas fa-list-ol"></i>
<h4>Queue System</h4>
<p>Advanced queue with playlist support</p>
</div>
<div class="feature pulse">
<i class="fas fa-filter"></i>
<h4>Audio Filters</h4>
<p>Bass boost, nightcore, vaporwave effects</p>
</div>
<div class="feature pulse">
<i class="fas fa-volume-up"></i>
<h4>Volume Control</h4>
<p>Per-user volume adjustment</p>
</div>
<div class="feature pulse">
<i class="fas fa-headphones"></i>
<h4>24/7 Radio</h4>
<p>Non-stop music streaming</p>
</div>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-terminal pulse"></i></div>
<h3 class="card-title">Commands (Prefix: !)</h3>
</div>
<div class="card-content">
<div class="commands-list">
<div class="command pulse">
<code>!play <song></code>
<span>Play a song or add to queue</span>
</div>
<div class="command pulse">
<code>!pause</code>
<span>Pause current track</span>
</div>
<div class="command pulse">
<code>!resume</code>
<span>Resume playback</span>
</div>
<div class="command pulse">
<code>!skip</code>
<span>Skip current song</span>
</div>
<div class="command pulse">
<code>!stop</code>
<span>Stop playback and clear queue</span>
</div>
<div class="command pulse">
<code>!queue</code>
<span>Show current queue</span>
</div>
<div class="command pulse">
<code>!volume <0-100></code>
<span>Adjust player volume</span>
</div>
<div class="command pulse">
<code>!shuffle</code>
<span>Shuffle the queue</span>
</div>
<div class="command pulse">
<code>!loop</code>
<span>Toggle queue loop</span>
</div>
<div class="command pulse">
<code>!remove <position></code>
<span>Remove track from queue</span>
</div>
<div class="command pulse">
<code>!clear</code>
<span>Clear current queue</span>
</div>
<div class="command pulse">
<code>!status</code>
<span>Show player status</span>
</div>
<div class="command pulse">
<code>!help</code>
<span>Show help message</span>
</div>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-plug pulse"></i></div>
<h3 class="card-title">Connect to DTEmpire Lavalink</h3>
</div>
<div class="card-content">
<p>The bot automatically uses our Lavalink server. Manual configuration:</p>
<div class="code-block">
<div class="code-header">
<span>Lavalink Configuration</span>
<button class="btn-copy pulse" onclick="copyToClipboard(this)">Copy</button>
</div>
<pre><code>Host: panel.ankitgupta.com.np
Port: 25574
Password: DTEmpire
Secure: false</code></pre>
</div>
</div>
</div>
</div>
`;
setActiveNav('music-bot');
setTimeout(() => setupScrollAnimations(), 100);
}
// Load Image Gen API documentation
function loadImageAPI() {
const contentBody = ensureContentBody();
const breadcrumb = document.getElementById('breadcrumb');
if (breadcrumb) breadcrumb.textContent = 'Documentation / Image Generation API';
contentBody.innerHTML = `
<div class="home-content">
<section class="welcome-section animate-on-scroll">
<h2><i class="fas fa-image pulse"></i> Image Generation API</h2>
<p>AI-powered image generation API with multiple models and features.</p>
</section>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-globe pulse"></i></div>
<h3 class="card-title">API Endpoints</h3>
</div>
<div class="card-content">
<div class="endpoint-info pulse">
<i class="fas fa-link"></i>
<a href="https://imggen-api.ankitgupta.com.np/" target="_blank" class="glow-link">https://imggen-api.ankitgupta.com.np/</a>
</div>
<div class="api-endpoints">
<div class="endpoint pulse">
<div class="endpoint-method get">GET</div>
<div class="endpoint-path">/api/pollination</div>
<div class="endpoint-desc">Image Generation</div>
</div>
<div class="endpoint pulse">
<div class="endpoint-method get">GET</div>
<div class="endpoint-path">/api/tts</div>
<div class="endpoint-desc">Text-to-Speech</div>
</div>
<div class="endpoint pulse">
<div class="endpoint-method get">GET</div>
<div class="endpoint-path">/api/ai-text</div>
<div class="endpoint-desc">AI Text Generation</div>
</div>
<div class="endpoint pulse">
<div class="endpoint-method get">GET</div>
<div class="endpoint-path">/api/image-card</div>
<div class="endpoint-desc">Image Card Generator</div>
</div>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-code pulse"></i></div>
<h3 class="card-title">Pollination Image Generation</h3>
</div>
<div class="card-content">
<div class="code-block typing-code">
<div class="code-header">
<span>Example Request</span>
<button class="btn-copy pulse" onclick="copyToClipboard(this)">Copy</button>
</div>
<pre><code class="type-animation">GET /api/pollination?prompt=a%20beautiful%20sunset&model=seeddream&width=512&height=512</code></pre>
</div>
<h4>Parameters:</h4>
<ul class="param-list">
<li class="pulse"><code>prompt</code> (required) - Text description</li>
<li class="pulse"><code>model</code> (optional) - flux, seeddream, turbo, kontext</li>
<li class="pulse"><code>width</code> (optional) - Default: 512</li>
<li class="pulse"><code>height</code> (optional) - Default: 512</li>
</ul>
<h4>Response:</h4>
<div class="code-block">
<pre><code>{
"success": true,
"image_url": "https://imggen-api.ankitgupta.com.np/generated/image.png",
"model": "seeddream",
"generation_time": "2.5s"
}</code></pre>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-volume-up pulse"></i></div>
<h3 class="card-title">Text-to-Speech</h3>
</div>
<div class="card-content">
<div class="code-block">
<div class="code-header">
<span>Example Request</span>
<button class="btn-copy pulse" onclick="copyToClipboard(this)">Copy</button>
</div>
<pre><code>GET /api/tts?message=Hello%20world&channel=123456789&bot_token=YOUR_TOKEN&lang=en</code></pre>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-external-link-alt pulse"></i></div>
<h3 class="card-title">Related Services</h3>
</div>
<div class="card-content">
<div class="service-link pulse">
<i class="fas fa-paint-brush"></i>
<div>
<h4>Image Generation Website</h4>
<p>User-friendly interface for image generation</p>
<a href="https://imggen.ankitgupta.com.np" target="_blank" class="glow-link">https://imggen.ankitgupta.com.np</a>
</div>
</div>
</div>
</div>
</div>
`;
setActiveNav('image-api');
setTimeout(() => typeCodeAnimations(), 300);
setTimeout(() => setupScrollAnimations(), 100);
}
// Load Game Servers documentation
function loadGameServers() {
const contentBody = ensureContentBody();
const breadcrumb = document.getElementById('breadcrumb');
if (breadcrumb) breadcrumb.textContent = 'Documentation / Game Servers';
contentBody.innerHTML = `
<div class="home-content">
<section class="welcome-section animate-on-scroll">
<h2><i class="fas fa-gamepad pulse"></i> Minecraft Game Servers</h2>
<p>DTEmpire hosts multiple Minecraft servers for different gameplay experiences.</p>
</section>
<div class="grid-container">
<div class="card animate-on-scroll server-card pulse">
<div class="server-status online pulse"></div>
<div class="card-header">
<div class="card-icon"><i class="fas fa-users"></i></div>
<h3 class="card-title">Prominence II: Hasturian Era</h3>
</div>
<div class="card-content">
<p><strong>Type:</strong> Public Modded Server</p>
<p><strong>Access:</strong> Open for everyone</p>
<p><strong>Mod Pack:</strong> Custom mod collection</p>
<div class="server-info">
<i class="fas fa-globe"></i>
<strong>IP:</strong> <code class="glow-text">panel.ankitgupta.com.np:25571</code>
</div>
<button class="btn btn-hack copy-ip pulse" data-ip="panel.ankitgupta.com.np:25571">
<i class="fas fa-copy"></i> Copy IP
</button>
</div>
</div>
<div class="card animate-on-scroll server-card pulse">
<div class="server-status online pulse"></div>
<div class="card-header">
<div class="card-icon"><i class="fas fa-lock"></i></div>
<h3 class="card-title">Kreate Mod Server</h3>
</div>
<div class="card-content">
<p><strong>Type:</strong> Private Technical Server</p>
<p><strong>Access:</strong> Ask admin for access</p>
<p><strong>Focus:</strong> Automation & Creativity</p>
<div class="server-info">
<i class="fas fa-globe"></i>
<strong>IP:</strong> <code class="glow-text">panel.ankitgupta.com.np:25565</code>
</div>
<button class="btn btn-hack copy-ip pulse" data-ip="panel.ankitgupta.com.np:25565">
<i class="fas fa-copy"></i> Copy IP
</button>
</div>
</div>
<div class="card animate-on-scroll server-card pulse">
<div class="server-status online pulse"></div>
<div class="card-header">
<div class="card-icon"><i class="fas fa-tree"></i></div>
<h3 class="card-title">WarmBrew SMP</h3>
</div>
<div class="card-content">
<p><strong>Type:</strong> Public Vanilla Server</p>
<p><strong>Access:</strong> Open for everyone</p>
<p><strong>Style:</strong> Survival Multiplayer</p>
<div class="server-info">
<i class="fas fa-globe"></i>
<strong>IP:</strong> <code class="glow-text">panel.ankitgupta.com.np:25572</code>
</div>
<button class="btn btn-hack copy-ip pulse" data-ip="panel.ankitgupta.com.np:25572">
<i class="fas fa-copy"></i> Copy IP
</button>
</div>
</div>
</div>
<div class="card animate-on-scroll">
<div class="card-header">
<div class="card-icon"><i class="fas fa-chart-line pulse"></i></div>
<h3 class="card-title">Live Server Status</h3>
</div>
<div class="card-content">
<p>Check real-time status of all game servers:</p>
<div class="status-link pulse">
<i class="fas fa-external-link-alt"></i>
<a href="https://live-monitor.ankitgupta.com.np/" target="_blank" class="glow-link">https://live-monitor.ankitgupta.com.np/</a>
</div>
</div>
</div>
</div>
`;
setActiveNav('game-servers');
// Add copy IP functionality
setTimeout(() => {
document.querySelectorAll('.copy-ip').forEach(button => {
button.addEventListener('click', function() {
const ip = this.getAttribute('data-ip');
copyToClipboardText(ip);
this.innerHTML = '<i class="fas fa-check"></i> Copied!';
this.classList.add('copied');
setTimeout(() => {
this.innerHTML = '<i class="fas fa-copy"></i> Copy IP';
this.classList.remove('copied');
}, 2000);
});
});
}, 100);
setTimeout(() => setupScrollAnimations(), 100);
}
// Load Websites documentation
function loadWebsites() {
const contentBody = ensureContentBody();
const breadcrumb = document.getElementById('breadcrumb');
if (breadcrumb) breadcrumb.textContent = 'Documentation / Websites';
contentBody.innerHTML = `
<div class="home-content">
<section class="welcome-section animate-on-scroll">
<h2><i class="fas fa-globe pulse"></i> DTEmpire Websites</h2>
<p>Collection of web services and applications hosted by DTEmpire.</p>
</section>
<div class="grid-container">
<div class="card animate-on-scroll pulse">
<div class="card-header">
<div class="card-icon"><i class="fas fa-paint-brush"></i></div>
<h3 class="card-title">Image Generation</h3>
</div>
<div class="card-content">
<p>Free AI image generation website with multiple models.</p>
<ul>
<li><i class="fas fa-bolt"></i> Flux model</li>
<li><i class="fas fa-rocket"></i> Turbo model</li>
<li><i class="fas fa-seedling"></i> Seeddream model</li>
</ul>
<div class="website-link">
<a href="https://imggen.ankitgupta.com.np" target="_blank" class="card-link pulse">
<i class="fas fa-external-link-alt"></i> Visit Site
</a>
</div>
</div>
</div>
<div class="card animate-on-scroll pulse">
<div class="card-header">
<div class="card-icon"><i class="fas fa-robot"></i></div>
<h3 class="card-title">AI Chat</h3>
</div>
<div class="card-content">
<p>Official DTEmpire AI chatbot for answering questions.</p>
<ul>
<li><i class="fas fa-check"></i> Handles small tasks</li>
<li><i class="fas fa-check"></i> Provides detailed answers</li>
<li><i class="fas fa-times"></i> No chat memory (stateless)</li>
</ul>
<div class="website-link">
<a href="https://ai.ankitgupta.com.np/" target="_blank" class="card-link pulse">
<i class="fas fa-external-link-alt"></i> Visit Site
</a>
</div>
</div>
</div>
<div class="card animate-on-scroll pulse">
<div class="card-header">
<div class="card-icon"><i class="fas fa-shield-alt"></i></div>
<h3 class="card-title">SecurePKIChat</h3>
</div>
<div class="card-content">
<p>PKI-encrypted secure chat server (Beta).</p>
<ul>