Commit 31ff03a
committed
Add anti-spam for /ohno command and refactor handlers
Introduces anti-spam tracking for the /ohno command, kicking players who excessively use it and warning at lower thresholds. Refactors command handler argument destructuring for consistency, improves area tile history limit logic, and updates test/build scripts in package.json. Also includes minor code style and logic improvements throughout playerCommands.1 parent 0b394ab commit 31ff03a
File tree
5 files changed
+101
-11
lines changed- build/scripts
- src
5 files changed
+101
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
561 | 563 | | |
562 | 564 | | |
563 | 565 | | |
| |||
578 | 580 | | |
579 | 581 | | |
580 | 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 | + | |
581 | 608 | | |
582 | 609 | | |
583 | 610 | | |
584 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
585 | 620 | | |
586 | 621 | | |
587 | 622 | | |
| |||
590 | 625 | | |
591 | 626 | | |
592 | 627 | | |
| 628 | + | |
593 | 629 | | |
594 | | - | |
| 630 | + | |
595 | 631 | | |
596 | 632 | | |
597 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
598 | 639 | | |
599 | 640 | | |
600 | 641 | | |
| |||
0 commit comments