Brozy123 commited on
Commit
2835623
·
verified ·
1 Parent(s): d0cf943

Update dashboard.html

Browse files
Files changed (1) hide show
  1. dashboard.html +19 -1
dashboard.html CHANGED
@@ -662,6 +662,20 @@ input:checked + .slider:before {
662
  <p style="font-size:12px; color:var(--text-dim); margin-top:16px">Control where global announcements from the bot owner are posted. You can opt-out by disabling this feature.</p>
663
  </div>
664
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
665
  <div style="border-top:1px solid var(--border); padding-top:24px; text-align:right">
666
  <button class="invite-btn" onclick="saveConfig()" style="background:var(--accent); color:white; padding:12px 32px">Save All Changes</button>
667
  </div>
@@ -807,6 +821,8 @@ function openServerSettings(id, name) {
807
  document.getElementById('config-auto-enabled').checked = data.autoFriendlyEnabled || false;
808
  document.getElementById('config-auto-interval').value = data.autoFriendlyInterval || 40;
809
  document.getElementById('config-post-enabled').checked = data.postEnabled !== false;
 
 
810
 
811
  // Load channels and set selected
812
  fetch('/api/channels/' + id)
@@ -853,7 +869,9 @@ function saveConfig() {
853
  autoFriendlyInterval,
854
  autoFriendlyChannel,
855
  postEnabled,
856
- postChannelId
 
 
857
  })
858
  })
859
  .then(r => r.json())
 
662
  <p style="font-size:12px; color:var(--text-dim); margin-top:16px">Control where global announcements from the bot owner are posted. You can opt-out by disabling this feature.</p>
663
  </div>
664
 
665
+ <div style="border-top:1px solid var(--border); padding-top:32px; margin-bottom: 32px;">
666
+ <h4 style="margin-bottom:16px; font-size:15px; color:var(--accent)">💬 Command Messages</h4>
667
+ <div style="margin-bottom: 24px;">
668
+ <label style="display:block; font-size:13px; color:var(--text-dim); margin-bottom:8px">Friendly Command Text</label>
669
+ <textarea id="config-friendly-text" style="width:100%; height:100px; padding:12px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm); color:white; font-family:monospace; font-size:13px; outline:none; resize:vertical;"></textarea>
670
+ <p style="font-size:12px; color:var(--text-dim); margin-top:8px">Use <code>{needed}</code> as a placeholder for the number of players needed.</p>
671
+ </div>
672
+ <div>
673
+ <label style="display:block; font-size:13px; color:var(--text-dim); margin-bottom:8px">Lineup Command Text</label>
674
+ <textarea id="config-lineup-text" style="width:100%; height:80px; padding:12px; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm); color:white; font-family:monospace; font-size:13px; outline:none; resize:vertical;"></textarea>
675
+ <p style="font-size:12px; color:var(--text-dim); margin-top:8px">The text message sent above the interactive lineup board.</p>
676
+ </div>
677
+ </div>
678
+
679
  <div style="border-top:1px solid var(--border); padding-top:24px; text-align:right">
680
  <button class="invite-btn" onclick="saveConfig()" style="background:var(--accent); color:white; padding:12px 32px">Save All Changes</button>
681
  </div>
 
821
  document.getElementById('config-auto-enabled').checked = data.autoFriendlyEnabled || false;
822
  document.getElementById('config-auto-interval').value = data.autoFriendlyInterval || 40;
823
  document.getElementById('config-post-enabled').checked = data.postEnabled !== false;
824
+ document.getElementById('config-friendly-text').value = data.friendlyText || "";
825
+ document.getElementById('config-lineup-text').value = data.lineupText || "";
826
 
827
  // Load channels and set selected
828
  fetch('/api/channels/' + id)
 
869
  autoFriendlyInterval,
870
  autoFriendlyChannel,
871
  postEnabled,
872
+ postChannelId,
873
+ friendlyText: document.getElementById('config-friendly-text').value,
874
+ lineupText: document.getElementById('config-lineup-text').value
875
  })
876
  })
877
  .then(r => r.json())