-
Notifications
You must be signed in to change notification settings - Fork 3
/
commands.json
883 lines (883 loc) · 26.7 KB
/
commands.json
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
{
"commands": [
{
"name": "category",
"description": "Challenge category management",
"options": [
{
"name": "add",
"description": "[A] Creates a new category with the indicated name and description.",
"type": 1,
"options": [
{
"name": "name",
"description": "The desired category name",
"type": 3,
"required": true
},
{
"name": "description",
"description": "The desired category description",
"type": 3,
"required": false
}
]
},
{
"name": "del",
"description": "[A] Removes the provided category from the current CTF.",
"type": 1,
"options": [
{
"name": "name",
"description": "The category name",
"type": 3,
"required": true
}
]
},
{
"name": "get",
"description": "If a category is indicated, lists all challenges within the category. If none is specified, lists all categories within the CTF.",
"type": 1,
"options": [
{
"name": "name",
"description": "The category name",
"type": 3,
"required": false
}
]
},
{
"name": "set",
"description": "Category info management",
"type": 2,
"options": [
{
"name": "name",
"description": "[A] Changes the name of the indicated category",
"type": 1,
"options": [
{
"name": "category_name",
"description": "The current category name",
"type": 3,
"required": true
},
{
"name": "new_name",
"description": "The new category name",
"type": 3,
"required": true
}
]
},
{
"name": "description",
"description": "[A] Changes the description of the indicated category",
"type": 1,
"options": [
{
"name": "category_name",
"description": "The current category name",
"type": 3,
"required": true
},
{
"name": "description",
"description": "The new category description",
"type": 3,
"required": true
}
]
}
]
}
]
},
{
"name": "challenge",
"description": "Challenge management and submission",
"options": [
{
"name": "add",
"description": "[A] Creates a new CTF challenge.",
"type": 1,
"options": [
{
"name": "name",
"description": "The challenge's name",
"type": 3,
"required": true
},
{
"name": "category",
"description": "The challenge's category",
"type": 3,
"required": true
}
]
},
{
"name": "attach",
"description": "Challenge attachment management",
"type": 2,
"options": [
{
"name": "get",
"description": "[A] Lists all file attachments of the specified challenge",
"type": 1,
"options": [
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "add",
"description": "[A] Adds a file attachment to the existing specified challenge",
"type": 1,
"options": [
{
"name": "file_name",
"description": "The name the file will be referred to",
"type": 3,
"required": true
},
{
"name": "file_url",
"description": "The download url for the file",
"type": 3,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "del",
"description": "[A] Deletes a file attachment from the existing specified challenge.",
"type": 1,
"options": [
{
"name": "file_name",
"description": "The name of the attachment",
"type": 3,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
}
]
},
{
"name": "del",
"description": "[A] Removes the indicated challenge from existance. If none is specified, then the challenge is inferred from the current channel",
"type": 1,
"options": [
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "get",
"description": "Gives info on the indicated challenge, and if none is specified returns all challenges in the CTF",
"type": 1,
"options": [
{
"name": "challenge_name",
"description": "The challenge to get info on",
"type": 3,
"required": false
}
]
},
{
"name": "set",
"description": "Challenge info managament",
"type": 2,
"options": [
{
"name": "name",
"description": "[A] Changes the name of the indicated challenge",
"type": 1,
"options": [
{
"name": "new_name",
"description": "The challenge's new name",
"type": 3,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "author",
"description": "[A] Sets the indicated challenge's author",
"type": 1,
"options": [
{
"name": "author",
"description": "The author or authors",
"type": 3,
"required": true
},
{
"name": "challenge_name",
"description": "The challenge's name",
"type": 7,
"required": false
}
]
},
{
"name": "prompt",
"description": "[A] Changes the indicated challenge's prompt",
"type": 1,
"options": [
{
"name": "prompt",
"description": "The desired challenge prompt",
"type": 3,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "difficulty",
"description": "[A] Sets the difficulty of the indicated challenge",
"type": 1,
"options": [
{
"name": "difficulty",
"description": "The challenge's difficulty",
"type": 3,
"required": true,
"choices": [
{
"name": "Baby",
"value": "0"
},
{
"name": "Easy",
"value": "1"
},
{
"name": "Medium",
"value": "2"
},
{
"name": "Hard",
"value": "3"
}
]
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "points",
"description": "[A] Sets both the initial and minimum points",
"type": 1,
"options": [
{
"name": "points",
"description": "The desired points",
"type": 4,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "initialpoints",
"description": "[A] Sets the challenge's initial points",
"type": 1,
"options": [
{
"name": "points",
"description": "The desired points",
"type": 4,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "minimumpoints",
"description": "[A] Sets the challenge's minimum points",
"type": 1,
"options": [
{
"name": "points",
"description": "The desired points",
"type": 4,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "pointdecay",
"description": "[A] Sets the challenges point decay (i.e. number of solves until the minimum point value is reached)",
"type": 1,
"options": [
{
"name": "decay",
"description": "Number of solves",
"type": 4,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "flag",
"description": "[A] Sets the challenge's flag",
"type": 1,
"options": [
{
"name": "flag",
"description": "The challenge's flag",
"type": 3,
"required": true
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
},
{
"name": "publish",
"description": "[A] Sets when the challenge is going to be released. If no time is specified, publishes the challenge now",
"type": 1,
"options": [
{
"name": "publish_time",
"description": "The desired publish date in a 'May 26, 2002 06:24:00' format",
"type": 3,
"required": false
},
{
"name": "challenge_channel",
"description": "The challenge's current name",
"type": 7,
"required": false
}
]
}
]
},
{
"name": "submit",
"description": "Submits a challenge's flag",
"type": 1,
"options": [
{
"name": "challenge_name",
"description": "The challenge being attempted",
"type": 3,
"required": true
},
{
"name": "flag",
"description": "The challenge's flag",
"type": 3,
"required": true
}
]
}
]
},
{
"name": "ctf",
"description": "Add or manage aspects of CTFs",
"options": [
{
"name": "add",
"description": "[A] Creates a new CTF in the current guild",
"type": 1,
"options": [
{
"name": "name",
"description": "The name of the CTF",
"type": 3,
"required": true
},
{
"name": "description",
"description": "An optional description of the CTF",
"type": 3,
"required": false
}
]
},
{
"name": "announce",
"description": "[A] Posts the message provided to the official CTF #announcements channel",
"type": 1,
"options": [
{
"name": "message",
"description": "The message to post to #announcements",
"type": 3,
"required": true
}
]
},
{
"name": "del",
"description": "[A] Causes the removal of the current guild's CTF and all associated Teams, Categories, and Challenges. There is no going back.",
"type": 1
},
{
"name": "server",
"description": "Management for the team servers",
"type": 2,
"options": [
{
"name": "get",
"description": "[A] Lists all of the team servers belonging to the indicated CTF (or current guild's CTF if none is specified)",
"type": 1,
"options": [
{
"name": "name",
"description": "The name of the CTF",
"type": 3,
"required": false
}
]
},
{
"name": "add",
"description": "[A] Adds the current guild as a team server for the indicated CTF",
"type": 1,
"options": [
{
"name": "name",
"description": "The unique identifier the server will be referred to as",
"type": 3,
"required": true
},
{
"name": "limit",
"description": "[A] The max number of teams allowed to be in the server",
"type": 4,
"required": true
},
{
"name": "ctf_name",
"description": "The name of the CTF to add the guild to",
"type": 3,
"required": false
}
]
},
{
"name": "del",
"description": "[A] Removes the indicated team server from the indicated CTF",
"type": 1,
"options": [
{
"name": "name",
"description": "The name of the team server",
"type": 3,
"required": false
},
{
"name": "ctf_name",
"description": "The name of the CTF to remove the guild from",
"type": 3,
"required": false
}
]
}
]
},
{
"name": "set",
"description": "Change various aspects of the CTF",
"type": 2,
"options": [
{
"name": "name",
"description": "[A] Set the name of the CTF",
"type": 1,
"options": [
{
"name": "name",
"description": "The desired name",
"type": 3,
"required": true
}
]
},
{
"name": "description",
"description": "[A] Set the description of the CTF",
"type": 1,
"options": [
{
"name": "description",
"description": "The desired description",
"type": 3,
"required": true
}
]
},
{
"name": "admin",
"description": "[A] Set the admin role for the CTF",
"type": 1,
"options": [
{
"name": "admin_role",
"description": "The desired role",
"type": 8,
"required": true
}
]
},
{
"name": "start",
"description": "[A] Set the start date for the CTF. If no date is indicated, sets it to now",
"type": 1,
"options": [
{
"name": "start_date",
"description": "The desired start date in a 'May 26, 2002 06:24:00' format",
"type": 3,
"required": false
}
]
},
{
"name": "end",
"description": "[A] Set the end date for the CTF. If no date is indicated, sets it to now",
"type": 1,
"options": [
{
"name": "end_date",
"description": "The desired end date in a 'May 26, 2002 06:24:00' format",
"type": 3,
"required": false
}
]
}
]
}
]
},
{
"name": "scoreboard",
"description": "Scoreboard management",
"options": [
{
"name": "standing",
"description": "Creates a scoreboard showing 9 teams above and below the indicated team overall. If no team is indicated, it is based on the user's team",
"type": 1,
"options": [
{
"name": "team_name",
"description": "The team to recieve info on",
"type": 3,
"required": false
}
]
},
{
"name": "team",
"description": "Gives info about the indicated team including name, points, and members. If no team is indicated, it is based on the user's team",
"type": 1,
"options": [
{
"name": "team_name",
"description": "The team to recieve info on",
"type": 3,
"required": false
}
]
},
{
"name": "top",
"description": "Lists the top 20 teams in the indicated category (or overall if no category is specified)",
"type": 1,
"options": [
{
"name": "category",
"description": "The category to list teams in",
"type": 3,
"required": false
}
]
}
]
},
{
"name": "team",
"description": "Team management commands",
"options": [
{
"name": "add",
"description": "[A] Creates an empty team in the indicated server (or current server if none is specified)",
"type": 1,
"options": [
{
"name": "name",
"description": "The team's name",
"type": 3,
"required": true
},
{
"name": "server_name",
"description": "The server to create the team on",
"type": 3,
"required": false
}
]
},
{
"name": "del",
"description": "[A] Removes the indicated team from the CTF",
"type": 1,
"options": [
{
"name": "team_role",
"description": "The team to remove",
"type": 8,
"required": false
}
]
},
{
"name": "get",
"description": "Returns a list of all teams currently in the CTF.",
"type": 1
},
{
"name": "invite",
"description": "Invites the indicated user to join your team. You must be Team Captain to do this.",
"type": 1,
"options": [
{
"name": "user",
"description": "The user to invite",
"type": 6,
"required": true
}
]
},
{
"name": "join",
"description": "Sends a request to join the indicated team.",
"type": 1,
"options": [
{
"name": "team_name",
"description": "The team you wish to join",
"type": 3,
"required": true
}
]
},
{
"name": "set",
"description": "Edit various aspects of a team",
"type": 2,
"options": [
{
"name": "name",
"descritpion": "Change the team name",
"type": 1,
"options": [
{
"name": "name",
"description": "The desired name",
"type": 3,
"required": true
},
{
"name": "team_role",
"description": "[A] The team to set the name of",
"type": 8,
"required": false
}
]
},
{
"name": "description",
"descritpion": "Change the team description",
"type": 1,
"options": [
{
"name": "description",
"description": "The desired description",
"type": 3,
"required": true
},
{
"name": "team_role",
"description": "[A] The team to set the description of",
"type": 8,
"required": false
}
]
},
{
"name": "color",
"descritpion": "Change the team's role color",
"type": 1,
"options": [
{
"name": "color",
"description": "The desired hex code in the format of \"AB121F\"",
"type": 3,
"required": true
},
{
"name": "team_role",
"description": "[A] The team to set the color of",
"type": 8,
"required": false
}
]
},
{
"name": "server",
"descritpion": "[A] Change the server the team belongs to",
"type": 1,
"options": [
{
"name": "server_name",
"description": "The name of the server to add the team to",
"type": 3,
"required": true
},
{
"name": "team_role",
"description": "The team to move",
"type": 8,
"required": false
}
]
}
]
},
{
"name": "user",
"description": "Team user management",
"type": 2,
"options": [
{
"name": "get",
"description": "Lists the users in the indicated team (the user's current team if not specifed)",
"type": 1,
"options": [
{
"name": "team_role",
"description": "The team to list the users of",
"type": 8,
"required": false
}
]
},
{
"name": "add",
"description": "[A] Adds a user to the indicated team",
"type": 1,
"options": [
{
"name": "user",
"description": "The user to add",
"type": 6,
"required": true
},
{
"name": "team_role",
"description": "The team to add the user to",
"type": 8,
"required": false
}
]
},
{
"name": "del",
"description": "[A] Removes a user from the indicated team",
"type": 1,
"options": [
{
"name": "user",
"description": "The user to remove",
"type": 6,
"required": true
},
{
"name": "team_role",
"description": "The team to remove the user from",
"type": 8,
"required": false
}
]
}
]
}
]
}
]
}