File size: 38,875 Bytes
9f1fdb9 dc7f0d5 9f1fdb9 dc7f0d5 386cc29 50856b4 5488d4e 50856b4 5488d4e 50856b4 178bd89 50856b4 178bd89 5488d4e 178bd89 5488d4e 178bd89 50856b4 5488d4e 178bd89 5488d4e 178bd89 5488d4e 7161e89 50856b4 d2a67b5 50856b4 3c3ae66 d2a67b5 9f1fdb9 8fa8287 386cc29 dc7f0d5 386cc29 dc7f0d5 386cc29 dc7f0d5 8fa8287 9f1fdb9 dc7f0d5 9f1fdb9 ec4cf41 dc7f0d5 ec4cf41 9f1fdb9 dc7f0d5 9f1fdb9 8128600 50b7bd6 8128600 11e6e87 e829b62 11e6e87 e829b62 11e6e87 85681b0 2744367 85681b0 2744367 85681b0 af8ceca 85681b0 069236b 50856b4 069236b 50856b4 069236b 50856b4 069236b 50856b4 069236b 50856b4 069236b 50856b4 069236b 5488d4e 50856b4 5488d4e 7161e89 42d258f 7161e89 3c3ae66 d2a67b5 8960b50 9f1fdb9 24acc72 9f1fdb9 | 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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 | import { SlashCommandBuilder } from 'discord.js';
import {
BOOK_CHOICES,
DATE_WINDOW_CHOICES,
RESOLUTION_CHOICES,
SPORT_CHOICES,
STATUS_FILTER_CHOICES,
} from './constants.js';
function addAnalyticsFilters(command, options = {}) {
command.addStringOption((option) =>
option
.setName('date_window')
.setDescription('Filter analytics by time window.')
.setRequired(false)
.addChoices(...DATE_WINDOW_CHOICES)
);
if (options.includeSport !== false) {
command.addStringOption((option) =>
option
.setName('sport')
.setDescription('Filter by sport/league.')
.setRequired(false)
.addChoices(...SPORT_CHOICES)
);
}
if (options.includeBook) {
command.addStringOption((option) =>
option
.setName('book')
.setDescription('Filter by sportsbook.')
.setRequired(false)
.addChoices(...BOOK_CHOICES)
);
}
if (options.includeStatus) {
command.addStringOption((option) =>
option
.setName('status')
.setDescription('Filter by bet status.')
.setRequired(false)
.addChoices(...STATUS_FILTER_CHOICES)
);
}
return command;
}
const SPORTSBOOK_BOOK_CHOICES = [
{ name: 'Circa', value: 'Circa' },
{ name: 'FanDuel', value: 'FanDuel' },
{ name: 'DraftKings', value: 'DraftKings' },
{ name: 'BetMGM', value: 'BetMGM' },
{ name: 'Caesars', value: 'Caesars' },
{ name: 'Fanatics', value: 'Fanatics' },
{ name: 'Bally Bet', value: 'Bally Bet' },
{ name: 'Hard Rock Bet', value: 'Hard Rock Bet' },
];
const DFS_BOOK_CHOICES = [
{ name: 'Betr Picks', value: 'Betr Picks' },
{ name: 'DraftKings Pick6', value: 'DraftKings Pick6' },
{ name: 'PrizePicks', value: 'PrizePicks' },
{ name: 'Underdog Fantasy', value: 'Underdog Fantasy' },
];
const EXCHANGE_BOOK_CHOICES = [
{ name: 'Kalshi', value: 'Kalshi' },
{ name: 'Novig', value: 'Novig' },
{ name: 'Polymarket', value: 'Polymarket' },
{ name: 'ProphetX', value: 'ProphetX' },
];
const MARKET_INTELLIGENCE_MARKET_CHOICES = [
{ name: 'Home Runs', value: 'home_runs' },
{ name: 'Hits', value: 'hits' },
{ name: 'Total Bases', value: 'total_bases' },
{ name: 'RBIs', value: 'rbis' },
{ name: 'Runs', value: 'runs' },
{ name: 'Steals', value: 'steals' },
{ name: 'Hits + Runs + RBIs', value: 'hits_runs_rbis' },
{ name: 'Pitcher Strikeouts', value: 'pitcher_strikeouts_generic' },
];
function addMarketIntelligenceFilters(command, options = {}) {
const bookChoices = options.bookChoices ?? SPORTSBOOK_BOOK_CHOICES;
if (options.includeBook && options.bookRequired === true) {
command.addStringOption((option) =>
option
.setName('book')
.setDescription('Optional book filter.')
.setRequired(true)
.addChoices(...bookChoices)
);
}
if (options.includePlayer && options.playerRequired === true) {
command.addStringOption((option) =>
option
.setName('player')
.setDescription('Optional player filter.')
.setRequired(true)
);
}
if (options.includeMarket !== false) {
command.addStringOption((option) =>
option
.setName('market')
.setDescription('Optional market filter.')
.setRequired(options.marketRequired === true)
.addChoices(...MARKET_INTELLIGENCE_MARKET_CHOICES)
);
}
if (options.includeBook && options.bookRequired !== true) {
command.addStringOption((option) =>
option
.setName('book')
.setDescription('Optional book filter.')
.setRequired(false)
.addChoices(...bookChoices)
);
}
if (options.includeTeam) {
command.addStringOption((option) =>
option
.setName('team')
.setDescription('Optional team code filter, for example KCR or CHC.')
.setRequired(false)
);
}
if (options.includePlayer && options.playerRequired !== true) {
command.addStringOption((option) =>
option
.setName('player')
.setDescription('Optional player filter.')
.setRequired(false)
);
}
if (options.includeMinEdge) {
command.addNumberOption((option) =>
option
.setName('min_edge')
.setDescription('Optional minimum sharp edge threshold as a decimal, for example 0.04 for 4%.')
.setRequired(false)
);
}
if (options.includeMinWidth) {
command.addNumberOption((option) =>
option
.setName('min_width')
.setDescription('Optional minimum market width threshold as a decimal, for example 0.05 for 5%.')
.setRequired(false)
);
}
if (options.includeLimit !== false) {
command.addIntegerOption((option) =>
option
.setName('limit')
.setDescription('Optional result limit.')
.setRequired(false)
.setMinValue(1)
.setMaxValue(25)
);
}
return command;
}
function addMatchupOptions(command, options = {}) {
if (options.includePlayer) {
command.addStringOption((option) =>
option
.setName('player')
.setDescription('Player name to look up.')
.setRequired(true)
);
}
if (options.includePlayerType) {
command.addStringOption((option) =>
option
.setName('player_type')
.setDescription('Optionally force hitter or pitcher context.')
.setRequired(false)
.addChoices(
{ name: 'Auto', value: 'auto' },
{ name: 'Hitter', value: 'hitter' },
{ name: 'Pitcher', value: 'pitcher' }
)
);
}
if (options.includeTeam) {
command.addStringOption((option) =>
option
.setName('team')
.setDescription('Optional team filter, for example CHC or KCR.')
.setRequired(false)
);
}
if (options.includeDate !== false) {
command.addStringOption((option) =>
option
.setName('date')
.setDescription('Optional slate date in YYYY-MM-DD format. Defaults to the latest available slate.')
.setRequired(false)
);
}
if (options.includeLimit !== false) {
command.addIntegerOption((option) =>
option
.setName('limit')
.setDescription('Optional result limit.')
.setRequired(false)
.setMinValue(1)
.setMaxValue(15)
);
}
return command;
}
const BASEBALL_CHART_BOOK_CHOICES = SPORTSBOOK_BOOK_CHOICES;
const PITCHER_SUITE_WINDOW_CHOICES = [
{ name: 'Last 5', value: 'last_5' },
{ name: 'Last 10', value: 'last_10' },
{ name: 'Season 2026', value: 'season_2026' },
{ name: 'Career', value: 'career' },
];
const PITCHER_SUITE_SPLIT_CHOICES = [
{ name: 'Overall', value: 'overall' },
{ name: 'Vs LHB', value: 'vs_lhb' },
{ name: 'Vs RHB', value: 'vs_rhb' },
];
const PITCHER_TREND_VIEW_CHOICES = [
{ name: 'Velocity', value: 'velo' },
{ name: 'Spin', value: 'spin' },
{ name: 'Release', value: 'release' },
{ name: 'Form', value: 'form' },
{ name: 'Results', value: 'results' },
{ name: 'Baseline', value: 'baseline' },
];
const PITCHER_ARSENAL_VIEW_CHOICES = [
{ name: 'Shape', value: 'shape' },
{ name: 'Movement', value: 'movement' },
{ name: 'Usage', value: 'usage' },
{ name: 'Evolution', value: 'evolution' },
{ name: 'Outcomes', value: 'outcomes' },
{ name: 'Platoon', value: 'platoon' },
];
const PITCHER_LOCATION_VIEW_CHOICES = [
{ name: 'Heatmap', value: 'heatmap' },
{ name: 'By Pitch', value: 'bypitch' },
{ name: 'Two Strike', value: 'twostrike' },
{ name: 'Chase', value: 'chase' },
{ name: 'Damage', value: 'damage' },
{ name: 'Miss', value: 'miss' },
];
const PITCHER_APPROACH_VIEW_CHOICES = [
{ name: 'Count Usage', value: 'count_usage' },
{ name: 'Count Whiff', value: 'count_whiff' },
{ name: 'Ahead / Behind', value: 'ahead_behind' },
{ name: 'First Pitch', value: 'first_pitch' },
{ name: 'Putaway', value: 'putaway' },
];
const PITCHER_COMPARE_VIEW_CHOICES = [
{ name: 'Current vs Career', value: 'current_vs_career' },
{ name: 'Recent vs Baseline', value: 'recent_vs_baseline' },
{ name: 'Year Over Year', value: 'year_over_year' },
{ name: 'Risk Reward', value: 'risk_reward' },
];
const PITCHER_COMPARE_TO_CHOICES = [
{ name: 'Season 2026', value: 'season_2026' },
{ name: 'Career', value: 'career' },
{ name: 'Prior 5', value: 'prior_5' },
{ name: 'Prior 10', value: 'prior_10' },
];
const PITCHER_COUNT_BUCKET_CHOICES = [
{ name: 'All', value: 'all' },
{ name: 'First Pitch', value: 'first_pitch' },
{ name: 'Ahead', value: 'ahead' },
{ name: 'Behind', value: 'behind' },
{ name: 'Putaway', value: 'putaway' },
{ name: 'Two Strike', value: 'two_strike' },
];
const DIRECT_ODDS_MARKET_CHOICES = [
{ name: 'Home Runs', value: 'batter_home_runs' },
{ name: 'Hits', value: 'batter_hits' },
{ name: 'Total Bases', value: 'batter_total_bases' },
{ name: 'RBIs', value: 'batter_rbis' },
{ name: 'Runs', value: 'batter_runs_scored' },
{ name: 'Steals', value: 'batter_stolen_bases' },
{ name: 'Hits + Runs + RBIs', value: 'batter_hits_runs_rbis' },
{ name: 'Pitcher Strikeouts', value: 'pitcher_strikeouts' },
];
function addBaseballChartDateOption(command) {
return command.addStringOption((option) =>
option
.setName('date')
.setDescription('Optional slate date in YYYY-MM-DD format. Defaults to the latest available slate.')
.setRequired(false)
);
}
function addBaseballChartWindowOption(command) {
return command.addIntegerOption((option) =>
option
.setName('window')
.setDescription('Optional number of recent slate points to chart.')
.setRequired(false)
.setMinValue(3)
.setMaxValue(14)
);
}
function addBaseballChartLimitOption(command) {
return command.addIntegerOption((option) =>
option
.setName('limit')
.setDescription('Optional result limit.')
.setRequired(false)
.setMinValue(1)
.setMaxValue(15)
);
}
function addBaseballChartBookOption(command) {
return command.addStringOption((option) =>
option
.setName('book')
.setDescription('Optional sportsbook filter.')
.setRequired(false)
.addChoices(...BASEBALL_CHART_BOOK_CHOICES)
);
}
function addPitcherSuitePitcherOption(command) {
return command.addStringOption((option) =>
option
.setName('pitcher')
.setDescription('Pitcher name to chart.')
.setRequired(true)
);
}
function addPitcherSuiteViewOption(command, choices) {
return command.addStringOption((option) =>
option
.setName('view')
.setDescription('Chart view to render.')
.setRequired(true)
.addChoices(...choices)
);
}
function addPitcherSuitePitchTypeOption(command) {
return command.addStringOption((option) =>
option
.setName('pitch_type')
.setDescription('Optional pitch type filter, for example FF, SL, or CH.')
.setRequired(false)
);
}
function addPitcherSuiteWindowOption(command) {
return command.addStringOption((option) =>
option
.setName('window')
.setDescription('Optional time window.')
.setRequired(false)
.addChoices(...PITCHER_SUITE_WINDOW_CHOICES)
);
}
function addPitcherSuiteSplitOption(command) {
return command.addStringOption((option) =>
option
.setName('split')
.setDescription('Optional batter-side split.')
.setRequired(false)
.addChoices(...PITCHER_SUITE_SPLIT_CHOICES)
);
}
function addPitcherSuiteCompareToOption(command) {
return command.addStringOption((option) =>
option
.setName('compare_to')
.setDescription('Optional comparison baseline.')
.setRequired(false)
.addChoices(...PITCHER_COMPARE_TO_CHOICES)
);
}
function addPitcherSuiteCountBucketOption(command) {
return command.addStringOption((option) =>
option
.setName('count_bucket')
.setDescription('Optional count bucket filter.')
.setRequired(false)
.addChoices(...PITCHER_COUNT_BUCKET_CHOICES)
);
}
export const commands = [
new SlashCommandBuilder()
.setName('bet')
.setDescription('Log a new bet using a private modal.')
.addStringOption((option) =>
option
.setName('book')
.setDescription('Choose the sportsbook for this bet.')
.setRequired(true)
.addChoices(...BOOK_CHOICES)
)
.addStringOption((option) =>
option
.setName('sport')
.setDescription('Choose the sport/league for this bet.')
.setRequired(true)
.addChoices(...SPORT_CHOICES)
),
new SlashCommandBuilder()
.setName('bulkadd')
.setDescription('Log multiple bets privately for a single sportsbook and sport.')
.addStringOption((option) =>
option
.setName('book')
.setDescription('Choose the sportsbook for this batch.')
.setRequired(true)
.addChoices(...BOOK_CHOICES)
)
.addStringOption((option) =>
option
.setName('sport')
.setDescription('Choose the sport/league for this batch.')
.setRequired(true)
.addChoices(...SPORT_CHOICES)
),
new SlashCommandBuilder()
.setName('editbet')
.setDescription('Edit one of your open bets.')
.addIntegerOption((option) =>
option.setName('bet_id').setDescription('Your bet number to edit.').setRequired(true)
)
.addStringOption((option) =>
option
.setName('book')
.setDescription('Update sportsbook.')
.setRequired(false)
.addChoices(...BOOK_CHOICES)
)
.addStringOption((option) =>
option
.setName('sport')
.setDescription('Update sport/league.')
.setRequired(false)
.addChoices(...SPORT_CHOICES)
)
.addStringOption((option) =>
option.setName('prop').setDescription('Update prop/bet text.').setRequired(false)
)
.addStringOption((option) =>
option.setName('odds').setDescription('Update odds.').setRequired(false)
)
.addNumberOption((option) =>
option.setName('stake').setDescription('Update stake amount.').setRequired(false)
),
new SlashCommandBuilder()
.setName('deletebet')
.setDescription('Soft delete one of your bets so it no longer counts in stats.')
.addIntegerOption((option) =>
option.setName('bet_id').setDescription('Your bet number to delete.').setRequired(true)
)
.addStringOption((option) =>
option.setName('reason').setDescription('Optional reason for deletion.').setRequired(false)
),
new SlashCommandBuilder()
.setName('resolve')
.setDescription('Resolve one of your tracked bets.')
.addIntegerOption((option) =>
option.setName('bet_id').setDescription('Your bet number to resolve.').setRequired(true)
)
.addStringOption((option) =>
option
.setName('result')
.setDescription('The final result for this bet.')
.setRequired(true)
.addChoices(...RESOLUTION_CHOICES)
),
new SlashCommandBuilder()
.setName('resolveall')
.setDescription('Resolve multiple of your tracked bets with the same result.')
.addStringOption((option) =>
option
.setName('bet_ids')
.setDescription('Comma-separated bet IDs, for example: 12, 13, 14')
.setRequired(true)
)
.addStringOption((option) =>
option
.setName('result')
.setDescription('The final result for all listed bets.')
.setRequired(true)
.addChoices(...RESOLUTION_CHOICES)
),
new SlashCommandBuilder()
.setName('bankroll')
.setDescription('View or update your bankroll and unit settings.')
.addNumberOption((option) =>
option.setName('starting_bankroll').setDescription('Set your starting bankroll.').setRequired(false)
)
.addNumberOption((option) =>
option.setName('unit_size').setDescription('Set your unit size in dollars.').setRequired(false)
),
addAnalyticsFilters(
new SlashCommandBuilder()
.setName('roi')
.setDescription('Show your ROI, net profit, and cumulative profit chart.'),
{ includeBook: true }
),
addAnalyticsFilters(
new SlashCommandBuilder()
.setName('bets')
.setDescription('Show your total bets and browse your logged bets.'),
{ includeBook: true, includeStatus: true }
),
addAnalyticsFilters(
new SlashCommandBuilder()
.setName('summary')
.setDescription('Show your full betting summary and chart.'),
{ includeBook: true }
),
addAnalyticsFilters(
new SlashCommandBuilder()
.setName('books')
.setDescription('Show your ROI and win rate broken down by sportsbook.'),
{ includeSport: true }
),
addAnalyticsFilters(
new SlashCommandBuilder()
.setName('sports')
.setDescription('Show your ROI and win rate broken down by sport.'),
{ includeBook: true, includeSport: false }
),
addAnalyticsFilters(
new SlashCommandBuilder()
.setName('export')
.setDescription('Export your bets to CSV.'),
{ includeBook: true, includeStatus: true }
),
new SlashCommandBuilder()
.setName('commands')
.setDescription('Post a public command reference embed.'),
new SlashCommandBuilder()
.setName('scanstatus')
.setDescription('Show the market scanner status and latest run info.'),
new SlashCommandBuilder()
.setName('oddsquota')
.setDescription('Show the latest Odds API quota usage headers.'),
new SlashCommandBuilder()
.setName('scanrun')
.setDescription('Run the Circa market scanner manually.'),
new SlashCommandBuilder()
.setName('scanreport')
.setDescription('Post the daily scan reports immediately.'),
new SlashCommandBuilder()
.setName('circatest')
.setDescription('Run a Circa OCR diagnostic and preview parsed entries.'),
new SlashCommandBuilder()
.setName('circamarket')
.setDescription('Show the latest Circa market in the current channel.')
.addStringOption((option) =>
option
.setName('market')
.setDescription('Choose which Circa market to show.')
.setRequired(true)
.addChoices(
{ name: 'Home Runs', value: 'home_runs' },
{ name: 'Hits', value: 'hits' },
{ name: 'Total Bases', value: 'total_bases' },
{ name: 'RBIs', value: 'rbis' },
{ name: 'Runs', value: 'runs' },
{ name: 'Steals', value: 'steals' },
{ name: 'Hits + Runs + RBIs', value: 'hits_runs_rbis' },
{ name: 'Pitcher Strikeouts', value: 'pitcher_strikeouts_generic' }
)
),
new SlashCommandBuilder()
.setName('circahr')
.setDescription('Show the latest Circa Home Runs market in this channel.'),
new SlashCommandBuilder()
.setName('circahits')
.setDescription('Show the latest Circa Hits market in this channel.'),
new SlashCommandBuilder()
.setName('circatb')
.setDescription('Show the latest Circa Total Bases market in this channel.'),
new SlashCommandBuilder()
.setName('circarbis')
.setDescription('Show the latest Circa RBIs market in this channel.'),
new SlashCommandBuilder()
.setName('circaruns')
.setDescription('Show the latest Circa Runs market in this channel.'),
new SlashCommandBuilder()
.setName('circasb')
.setDescription('Show the latest Circa Steals market in this channel.'),
new SlashCommandBuilder()
.setName('circahrri')
.setDescription('Show the latest Circa Hits + Runs + RBIs market in this channel.'),
new SlashCommandBuilder()
.setName('circak')
.setDescription('Show the latest Circa Pitcher Strikeouts market in this channel.'),
new SlashCommandBuilder()
.setName('hrodds')
.setDescription('Show current home run odds for one player across books.')
.addStringOption((option) =>
option
.setName('player')
.setDescription('Player name to look up, for example Aaron Judge.')
.setRequired(true)
)
.addStringOption((option) =>
option
.setName('book')
.setDescription('Optionally limit the result to one book. Defaults to all books including Circa.')
.setRequired(false)
.addChoices(...SPORTSBOOK_BOOK_CHOICES)
),
new SlashCommandBuilder()
.setName('hitodds')
.setDescription('Show current hits odds for one player across books.')
.addStringOption((option) => option.setName('player').setDescription('Player name to look up.').setRequired(true))
.addStringOption((option) =>
option.setName('book').setDescription('Optionally limit the result to one book.').setRequired(false).addChoices(...SPORTSBOOK_BOOK_CHOICES)
),
new SlashCommandBuilder()
.setName('tbodds')
.setDescription('Show current total bases odds for one player across books.')
.addStringOption((option) => option.setName('player').setDescription('Player name to look up.').setRequired(true))
.addStringOption((option) =>
option.setName('book').setDescription('Optionally limit the result to one book.').setRequired(false).addChoices(...SPORTSBOOK_BOOK_CHOICES)
),
new SlashCommandBuilder()
.setName('rbiodds')
.setDescription('Show current RBI odds for one player across books.')
.addStringOption((option) => option.setName('player').setDescription('Player name to look up.').setRequired(true))
.addStringOption((option) =>
option.setName('book').setDescription('Optionally limit the result to one book.').setRequired(false).addChoices(...SPORTSBOOK_BOOK_CHOICES)
),
new SlashCommandBuilder()
.setName('runodds')
.setDescription('Show current run-scored odds for one player across books.')
.addStringOption((option) => option.setName('player').setDescription('Player name to look up.').setRequired(true))
.addStringOption((option) =>
option.setName('book').setDescription('Optionally limit the result to one book.').setRequired(false).addChoices(...SPORTSBOOK_BOOK_CHOICES)
),
new SlashCommandBuilder()
.setName('sbodds')
.setDescription('Show current stolen base odds for one player across books.')
.addStringOption((option) => option.setName('player').setDescription('Player name to look up.').setRequired(true))
.addStringOption((option) =>
option.setName('book').setDescription('Optionally limit the result to one book.').setRequired(false).addChoices(...SPORTSBOOK_BOOK_CHOICES)
),
new SlashCommandBuilder()
.setName('kodds')
.setDescription('Show current pitcher strikeout odds for one player across books.')
.addStringOption((option) => option.setName('player').setDescription('Pitcher name to look up.').setRequired(true))
.addStringOption((option) =>
option.setName('book').setDescription('Optionally limit the result to one book.').setRequired(false).addChoices(...SPORTSBOOK_BOOK_CHOICES)
),
new SlashCommandBuilder()
.setName('dfsodds')
.setDescription('Show current DFS or pick\'em prices for one player within the DFS lane.')
.addStringOption((option) => option.setName('player').setDescription('Player name to look up.').setRequired(true))
.addStringOption((option) =>
option.setName('market').setDescription('Choose which DFS market to query.').setRequired(true).addChoices(...DIRECT_ODDS_MARKET_CHOICES)
)
.addStringOption((option) =>
option.setName('book').setDescription('Optionally limit the result to one DFS source.').setRequired(false).addChoices(...DFS_BOOK_CHOICES)
),
new SlashCommandBuilder()
.setName('exchangeodds')
.setDescription('Show current exchange prices for one player within the exchange lane.')
.addStringOption((option) => option.setName('player').setDescription('Player name to look up.').setRequired(true))
.addStringOption((option) =>
option.setName('market').setDescription('Choose which exchange market to query.').setRequired(true).addChoices(...DIRECT_ODDS_MARKET_CHOICES)
)
.addStringOption((option) =>
option.setName('book').setDescription('Optionally limit the result to one exchange source.').setRequired(false).addChoices(...EXCHANGE_BOOK_CHOICES)
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('edgeboard')
.setDescription('Show the best current edges versus the sharp book.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includeMinEdge: true, includeLimit: true }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('playeredge')
.setDescription('Show sharp comparisons across all supported markets for one player.'),
{ includePlayer: true, playerRequired: true, includeMarket: true, includeBook: true, includeMinEdge: true, includeLimit: true }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('marketedge')
.setDescription('Show the best current edges for one market.'),
{ includeMarket: true, marketRequired: true, includeBook: true, includeTeam: true, includeMinEdge: true, includeLimit: true }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('widthboard')
.setDescription('Show the widest current market splits across books.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includeMinWidth: true, includeLimit: true }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('consensusvs')
.setDescription('Compare one book to the current sharp market.'),
{ includeMarket: true, includeBook: true, bookRequired: true, includeTeam: true, includeMinEdge: true, includeLimit: true }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('dfsedgeboard')
.setDescription('Show the best current DFS or pick\'em edges within the DFS lane.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includeMinEdge: true, includeLimit: true, bookChoices: DFS_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('dfsplayeredge')
.setDescription('Show DFS lane comparisons across all supported markets for one player.'),
{ includePlayer: true, playerRequired: true, includeMarket: true, includeBook: true, includeMinEdge: true, includeLimit: true, bookChoices: DFS_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('dfsmarketedge')
.setDescription('Show the best current DFS lane edges for one market.'),
{ includeMarket: true, marketRequired: true, includeBook: true, includeTeam: true, includeMinEdge: true, includeLimit: true, bookChoices: DFS_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('dfswidthboard')
.setDescription('Show the widest current DFS lane market splits.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includeMinWidth: true, includeLimit: true, bookChoices: DFS_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('dfsconsensusvs')
.setDescription('Compare one DFS source to the current DFS lane consensus.'),
{ includeMarket: true, includeBook: true, bookRequired: true, includeTeam: true, includeMinEdge: true, includeLimit: true, bookChoices: DFS_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('exchangeedgeboard')
.setDescription('Show the best current exchange-lane edges.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includeMinEdge: true, includeLimit: true, bookChoices: EXCHANGE_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('exchangeplayeredge')
.setDescription('Show exchange-lane comparisons across all supported markets for one player.'),
{ includePlayer: true, playerRequired: true, includeMarket: true, includeBook: true, includeMinEdge: true, includeLimit: true, bookChoices: EXCHANGE_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('exchangemarketedge')
.setDescription('Show the best current exchange-lane edges for one market.'),
{ includeMarket: true, marketRequired: true, includeBook: true, includeTeam: true, includeMinEdge: true, includeLimit: true, bookChoices: EXCHANGE_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('exchangewidthboard')
.setDescription('Show the widest current exchange-lane market splits.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includeMinWidth: true, includeLimit: true, bookChoices: EXCHANGE_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('exchangeconsensusvs')
.setDescription('Compare one exchange source to the current exchange lane consensus.'),
{ includeMarket: true, includeBook: true, bookRequired: true, includeTeam: true, includeMinEdge: true, includeLimit: true, bookChoices: EXCHANGE_BOOK_CHOICES }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('steam')
.setDescription('Show recent price movement anchored to the current sharp market.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includePlayer: true, includeLimit: true }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('sharpboard')
.setDescription('Show the best current sharp-vs-soft values.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includeMinEdge: true, includeLimit: true }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('bookscoreboard')
.setDescription('Rank books by sharp mispricing count and size.'),
{ includeMarket: true, includeBook: true, includeTeam: true, includeMinEdge: true, includeLimit: true }
),
addMarketIntelligenceFilters(
new SlashCommandBuilder()
.setName('markethealth')
.setDescription('Show coverage and market quality by supported market.'),
{ includeMarket: true, includeLimit: true }
),
addMatchupOptions(
new SlashCommandBuilder()
.setName('matchuphitters')
.setDescription('Show the best hitter matchups from the hosted MLB artifact slate.'),
{ includeTeam: true, includeDate: true, includeLimit: true }
),
addMatchupOptions(
new SlashCommandBuilder()
.setName('matchuppitchers')
.setDescription('Show the best pitcher matchups from the hosted MLB artifact slate.'),
{ includeTeam: true, includeDate: true, includeLimit: true }
),
addMatchupOptions(
new SlashCommandBuilder()
.setName('playercontext')
.setDescription('Show matchup context for one hitter or pitcher.'),
{ includePlayer: true, includePlayerType: true, includeDate: true, includeLimit: false }
),
addMatchupOptions(
new SlashCommandBuilder()
.setName('bestmatchups')
.setDescription('Show a compact board of the best hitter matchups for the active slate.'),
{ includeTeam: true, includeDate: true, includeLimit: true }
),
new SlashCommandBuilder()
.setName('teambestmatchups')
.setDescription('Show the best 3 hitter matchups for one team from the active slate.')
.addStringOption((option) =>
option
.setName('team')
.setDescription('Team filter, for example CHC or KCR.')
.setRequired(true)
)
.addStringOption((option) =>
option
.setName('date')
.setDescription('Optional slate date in YYYY-MM-DD format. Defaults to the latest available slate.')
.setRequired(false)
)
.addIntegerOption((option) =>
option
.setName('limit')
.setDescription('Optional result limit.')
.setRequired(false)
.setMinValue(1)
.setMaxValue(15)
),
new SlashCommandBuilder()
.setName('matchuphealth')
.setDescription('Show hosted artifact freshness and Cockroach fallback status for matchup data.'),
addBaseballChartDateOption(
addBaseballChartLimitOption(
new SlashCommandBuilder()
.setName('hrboardchart')
.setDescription('Render a branded chart of the top home run targets on the active slate.')
.addStringOption((option) =>
option
.setName('team')
.setDescription('Optional team filter, for example CHC or KCR.')
.setRequired(false)
)
)
),
addBaseballChartDateOption(
addBaseballChartWindowOption(
new SlashCommandBuilder()
.setName('hrtrend')
.setDescription('Render a rolling home run trend chart for one hitter.')
.addStringOption((option) =>
option
.setName('player')
.setDescription('Hitter name to chart.')
.setRequired(true)
)
)
),
addBaseballChartDateOption(
new SlashCommandBuilder()
.setName('hrprofile')
.setDescription('Render a home run profile radar for one hitter.')
.addStringOption((option) =>
option
.setName('player')
.setDescription('Hitter name to chart.')
.setRequired(true)
)
),
addBaseballChartDateOption(
addBaseballChartBookOption(
addBaseballChartLimitOption(
new SlashCommandBuilder()
.setName('hrvaluechart')
.setDescription('Render a price-versus-model chart for current home run targets.')
.addStringOption((option) =>
option
.setName('team')
.setDescription('Optional team filter, for example CHC or KCR.')
.setRequired(false)
)
)
)
),
addBaseballChartDateOption(
new SlashCommandBuilder()
.setName('hrzone')
.setDescription('Render a zone overlay card for one hitter against the probable pitcher.')
.addStringOption((option) =>
option
.setName('player')
.setDescription('Hitter name to chart.')
.setRequired(true)
)
),
addBaseballChartDateOption(
addBaseballChartWindowOption(
new SlashCommandBuilder()
.setName('ktrend')
.setDescription('Render a rolling strikeout trend chart for one pitcher.')
.addStringOption((option) =>
option
.setName('pitcher')
.setDescription('Pitcher name to chart.')
.setRequired(true)
)
)
),
addBaseballChartDateOption(
addBaseballChartBookOption(
new SlashCommandBuilder()
.setName('kladder')
.setDescription('Render a strikeout ladder chart for one pitcher.')
.addStringOption((option) =>
option
.setName('pitcher')
.setDescription('Pitcher name to chart.')
.setRequired(true)
)
)
),
addBaseballChartDateOption(
new SlashCommandBuilder()
.setName('kprofile')
.setDescription('Render a pitcher strikeout profile radar.')
.addStringOption((option) =>
option
.setName('pitcher')
.setDescription('Pitcher name to chart.')
.setRequired(true)
)
),
addBaseballChartDateOption(
new SlashCommandBuilder()
.setName('kmatchup')
.setDescription('Render a pitcher strikeout matchup card against the opposing lineup.')
.addStringOption((option) =>
option
.setName('pitcher')
.setDescription('Pitcher name to chart.')
.setRequired(true)
)
),
addBaseballChartDateOption(
new SlashCommandBuilder()
.setName('kcount')
.setDescription('Render a count leverage chart for one pitcher.')
.addStringOption((option) =>
option
.setName('pitcher')
.setDescription('Pitcher name to chart.')
.setRequired(true)
)
),
addBaseballChartDateOption(
addPitcherSuiteSplitOption(
addPitcherSuiteCompareToOption(
addPitcherSuiteWindowOption(
addPitcherSuitePitchTypeOption(
addPitcherSuiteViewOption(
addPitcherSuitePitcherOption(
new SlashCommandBuilder()
.setName('pitchertrend')
.setDescription('Render time-based pitcher analysis charts beyond the daily slate.')
),
PITCHER_TREND_VIEW_CHOICES
)
)
)
)
)
),
addBaseballChartDateOption(
addPitcherSuiteSplitOption(
addPitcherSuiteWindowOption(
addPitcherSuitePitchTypeOption(
addPitcherSuiteViewOption(
addPitcherSuitePitcherOption(
new SlashCommandBuilder()
.setName('pitcherarsenal')
.setDescription('Render arsenal, movement, usage, and pitch outcome views for one pitcher.')
),
PITCHER_ARSENAL_VIEW_CHOICES
)
)
)
)
),
addBaseballChartDateOption(
addPitcherSuiteCountBucketOption(
addPitcherSuiteSplitOption(
addPitcherSuitePitchTypeOption(
addPitcherSuiteViewOption(
addPitcherSuitePitcherOption(
new SlashCommandBuilder()
.setName('pitcherlocation')
.setDescription('Render location, zone, and attack-pattern charts for one pitcher.')
),
PITCHER_LOCATION_VIEW_CHOICES
)
)
)
)
),
addBaseballChartDateOption(
addPitcherSuiteSplitOption(
addPitcherSuiteWindowOption(
addPitcherSuitePitchTypeOption(
addPitcherSuiteViewOption(
addPitcherSuitePitcherOption(
new SlashCommandBuilder()
.setName('pitcherapproach')
.setDescription('Render count-state and game-plan charts for one pitcher.')
),
PITCHER_APPROACH_VIEW_CHOICES
)
)
)
)
),
addBaseballChartDateOption(
addPitcherSuiteWindowOption(
addPitcherSuiteViewOption(
addPitcherSuitePitcherOption(
new SlashCommandBuilder()
.setName('pitchercompare')
.setDescription('Render baseline, year-over-year, and risk/reward comparison charts for one pitcher.')
),
PITCHER_COMPARE_VIEW_CHOICES
)
)
),
new SlashCommandBuilder()
.setName('alerts')
.setDescription('Post the analyst alert-role embed to the welcome channel.'),
new SlashCommandBuilder()
.setName('welcome')
.setDescription('Post the welcome embed and tag everyone.'),
new SlashCommandBuilder()
.setName('bulkdeletemessages')
.setDescription('Bulk delete recent messages from the current channel.')
.addIntegerOption((option) =>
option
.setName('count')
.setDescription('How many of the most recent messages to inspect and bulk delete.')
.setRequired(true)
.setMinValue(1)
.setMaxValue(1000)
),
].map((command) => command.toJSON());
|