Spaces:
Runtime error
Runtime error
Update server.js
Browse files
server.js
CHANGED
|
@@ -523,11 +523,12 @@ app.post('/api/config/:guildId', requireAuth, (req, res) => {
|
|
| 523 |
|
| 524 |
// --- Command List ---
|
| 525 |
app.get('/api/commands', requireAuth, (req, res) => {
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
|
|
|
| 531 |
{ name: 'win', description: 'Record a match victory', staff: true },
|
| 532 |
{ name: 'loss', description: 'Record a match defeat', staff: true },
|
| 533 |
{ name: 'draw', description: 'Record a match draw', staff: true },
|
|
|
|
| 523 |
|
| 524 |
// --- Command List ---
|
| 525 |
app.get('/api/commands', requireAuth, (req, res) => {
|
| 526 |
+
const fullCommands = [
|
| 527 |
+
{ name: 'friendly', description: 'Start a match poll for players to join', staff: true },
|
| 528 |
+
{ name: 'lineup', description: 'Generate the interactive lineup board', staff: true },
|
| 529 |
+
{ name: 'scrimlineup', description: 'Generate a scrimmage lineup board with two teams facing each other', staff: true },
|
| 530 |
+
{ name: 'lineupimage', description: 'Generate a high-quality visual lineup image', staff: true },
|
| 531 |
+
{ name: 'leaguematch', description: 'Schedule a league match with an opponent', staff: true },
|
| 532 |
{ name: 'win', description: 'Record a match victory', staff: true },
|
| 533 |
{ name: 'loss', description: 'Record a match defeat', staff: true },
|
| 534 |
{ name: 'draw', description: 'Record a match draw', staff: true },
|