Commit Graph

3926 Commits

Author SHA1 Message Date
Mia
67ca3b04eb Fix searchlog padding 2025-07-18 13:09:47 -05:00
Mia
ad3cedc8ad Actually guard dates via regex testing 2025-07-18 13:00:40 -05:00
Mia
0c4298d29d Fix typo 2025-07-18 12:58:48 -05:00
Mia
c4a6e8de1f Searchlog: Fix next/prev month buttons 2025-07-18 12:58:02 -05:00
Mia
4012a4b532 Searchlog: Add prev/next month buttons, fix date handling for more ambiguous dates 2025-07-18 12:53:34 -05:00
Mia
2b7e1d48b5 Searchlog: Allow searching only a username
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-07-17 23:26:21 -05:00
Mia
4d4c541a57 Searchlog: Adjust header to be more descriptive 2025-07-17 23:14:48 -05:00
Mia
20072695c1 Fix typo 2025-07-17 23:13:41 -05:00
Mia
fa5295db23 Searchlog: Use plainto_tsquery to sanitize syntax 2025-07-17 23:12:11 -05:00
Mia
88726667a1 Searchlog: Fix text rendering 2025-07-17 23:08:35 -05:00
Mia
e81d70440e Chatlog: Fully deprecate support for 'all' dates 2025-07-17 22:58:02 -05:00
Mia
5f31e2efe3 Chatlog: Restore /searchlog 2025-07-17 22:54:09 -05:00
Slayer95
19d279c9b5
CLI: Update to use util.parseArgs (#11245)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-07-17 05:06:26 -07:00
Sergio
38b0d9475e
Minor changes to the help boxes of /ds and /ms (#11094)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
* Minor changes to the help boxes of /ds and /ms

Removed parameters that do nothing (instruct, mimic), changed ssb examples (they were obsolete), added a couple more things. Would love to make the wall of mods you can use with both ds and ms smaller, since a lot of those don't actually change their behaviour, like randomroulette, but I'm not sure how to approach it. A hardcoded list of mods that change things is an option.

* Added "restricted" as a parameter
2025-07-15 21:11:15 -06:00
hammer798
fddbf8adb5
Fix item filters duplicating search terms (#11271) 2025-07-14 14:03:08 -07:00
Slayer95
0b6c1dbeec
Make some dependencies optional: probe-image-size, source-map-support (#11247) 2025-07-14 03:01:41 -07:00
André Bastos Dias
3b7b1d2864
Don't update the timer when an updated request is sent (#11251)
* Don't add time if there is a request update

* Ups

* Change prevRequest to updatedRequest

* Fix tests

* Refactor

* Fix tests
2025-07-13 15:38:58 -06:00
Mia
07a2820cf2 Punishments: Disallow Tor IPs from connecting 2025-07-07 12:18:39 -05:00
Slayer95
88d53617d6
RoomBattleTimer: Reset turn seconds on wait requests (#11240)
Previously, if a player timed out under VGC timer and knocked their opponent,
they would be treated as timing out their following 'wait' request
2025-07-05 01:32:10 -06:00
dot-Comfey
6533311382
Fix oversight from #11217 (#11228) 2025-07-01 01:17:21 -06:00
HoeenHero
8bcd2c2960 Teams: Improve error messages
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Moving the auth at least check later means the locked error message will actually trigger for locked users providing a clearer error message to them.
2025-06-30 12:40:33 -04:00
dot-Comfey
5a4c785ec4
Fix more button in /modlog (#11217)
* Fix more button in /modlog

* Drivers can use /mls

* Update modlog-viewer.ts
2025-06-29 22:09:06 -05:00
Alex "Mathy
9cd93f2a0c
Permalock plugin: Fix room not updating after notice (#11218) 2025-06-29 22:08:13 -05:00
Mia
c03510f909 Users: Don't remove rangelocks on user merge 2025-06-29 22:06:39 -05:00
Alex "Mathy
687b1c4ae0
/show: Fix unescaped HTML template (#11225) 2025-06-29 15:02:38 -06:00
Karthik99999
aab6b728cb /ssb: Fix text formatting issues
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-06-25 19:27:19 -04:00
Karthik99999
e0ccfa1532 Auctions: Fix draft order display 2025-06-25 12:27:09 -04:00
Slayer95
7835b015d9
Explain insecure subdomain in server/README.md (#11212)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-06-20 16:47:56 -07:00
zianwangs
d6e98c21fb
Fix typos (#11200) 2025-06-19 04:10:12 -07:00
Kris Johnson
36ae30160c Auto Responder: Fix ignore page view for regex terms 2025-06-17 13:36:55 -06:00
Kris Johnson
1c28a150e7 Auto Responder: Fix /ar view keys not escaping regex keys 2025-06-17 13:14:39 -06:00
Guangcong Luo
6903a2e2e7
Document new URL format
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
This doesn't say what the format is, but it's pretty easy to figure
out from the redirect, if you particularly care.
2025-06-15 08:11:10 -07:00
Guangcong Luo
e7b2be606a Fix client redirect
For a long time, connecting to non-localhost servers didn't work without
an HTTPS cert. But it's now once again possible. All you need is an
IP with an open port, and a dream.

Syntax is a little different than before. To go to `1.2.3.4` at port `5000`

- before: `http://1.2.3.4-5000.psim.us`
- after: `http://1-2-3-4--5000.insecure.psim.us`

Supporting multiple dots in the URL is too complicated, unfortunately.

The other way still works: `http://1.2.3.4:5000`

And yes, I would 100% recommend that one.
2025-06-15 07:25:04 -07:00
Lucas
4536eee620
/dexsearch: Add support for sorting by (doubles) tier (#11150)
* ds: add tier sorting

* Add support for doubles and natdex tiers

* fix unnecessary nationalSearch passing

---------

Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
2025-06-14 19:01:25 -06:00
Mia
c73803efe7 Ladder tours: Expose tracker object for debugging 2025-06-13 22:16:47 -05:00
motogp-bit
b5304c68b5
Mafia: Fix /mafia resetgame (#11192)
Co-authored-by: HoeenHero <HoeenCoder@users.noreply.github.com>
2025-06-12 11:14:17 -04:00
Lucas
6007bdc0b9
Mafia: Improve host/gameban (#11036)
* Improve host/gameban

- Allow for offline namehostban and namegameban.
- Notify users when they get host and gamebanned.
- Fix hostbans, which did not work at all.
- Fix host and gamebanned users from being able to subhost

* Change aliases and remove gameban unhostbanning.
2025-06-11 22:03:43 -04:00
Mia
92f5871309 Ladder tours: Properly force battles public 2025-06-10 17:42:00 -05:00
Mia
5e61465955 Ladder trackers: Adjust help 2025-06-09 19:20:30 -05:00
Lucas
71041ecfe1
Mafia: add maximum role length. (#11064)
Today, a bug was found where using revealas on a long role crashed PS!

I alleviated this by adding a maximum role length (instead of having it be uncapped, as currently people could spam PS using unlimited length roles) and moving the 'infinite loop' check to not be triggered by long roles.


Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
2025-06-09 18:47:52 -04:00
Kris Johnson
92ed7a4243 /formathelp: Fix crash 2025-06-09 14:16:53 -06:00
Dieter Reinert
dd96c0de95
Mafia: Fix crash when distributing roles with insufficient roles (#11183) 2025-06-07 09:18:06 -07:00
Mia
48ba18608b Ladder tours: Run notifications at the beginning of games, not end 2025-06-06 11:54:23 -05:00
cheesetheorange
6522f7987b
Scavengers: Fix scrollbars (#11176) 2025-06-04 19:15:44 -07:00
Mia
9560f87ebd Remove accidentally-committed debug info 2025-06-04 16:04:59 -05:00
Mia
9f8e8acd53 Fix typo 2025-06-04 12:54:47 -05:00
Mia
8b6964f060 Ladder tours: Do not save while loading 2025-06-04 12:52:22 -05:00
Kris Johnson
e26eadfa4c Ladder Tracker: Don't log the IP of the user setting a tracker 2025-06-04 11:36:16 -06:00
Kris Johnson
7f69e2893d Revert "Return the right error on /searchlog (#11174)"
This reverts commit a94972bbd2.
2025-06-04 11:21:49 -06:00
Mia
bde88764cb
Add a plugin to support native ladder tour tracking (#11016) 2025-06-03 23:11:22 -05:00
Sergio Garcia
9a2c4739b0
Improve chatlog error message when disabled (#11173) 2025-06-03 15:22:54 -07:00
Sergio Garcia
a94972bbd2
Return the right error on /searchlog (#11174) 2025-06-03 15:20:28 -07:00
Lucas
de1d24e4eb
OMs: add Bad 'n Boosted data command (#11165)
* Add bnb command

* Update server/chat-plugins/othermetas.ts

---------

Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-06-02 01:21:20 -06:00
FeluciaPS
fa88abb5d6
Add /dm as a /pm alias (#11154) 2025-05-30 16:33:28 -07:00
Guangcong Luo
cd20be423f
Fix timer for mid-turn requests (#11127) 2025-05-28 17:07:41 -07:00
Guangcong Luo
66018a56b8 Fix ticket spacing 2025-05-28 16:30:30 -07:00
PartMan
4b2ac032d6
Pages: Notify bots when a user leaves a bot page (#11136) 2025-05-26 11:45:52 -07:00
Guangcong Luo
17f8fbc46a Unbold 5000 in auction help message 2025-05-25 18:58:33 -07:00
Sergio Garcia
b81ff9a69a
Remove useless spreads (#11132) 2025-05-24 16:19:48 -07:00
Guangcong Luo
e07080ce5c
Support fuzzy searching /dt etc (#11124)
This add's the teambuilder's fuzzy matching to /dt and similar commands.
2025-05-23 00:26:23 -07:00
dot-Comfey
8f57aa50bf
Help Tickets: Fix claim button text for text tickets (#10978)
Nitpick; the button to check out a text ticket shows as "Claim" when someone else is already looking at the ticket or it is already closed, which doesn't really make sense.
2025-05-22 13:11:46 -06:00
Guangcong Luo
df8a236c16 Teams: Hardcode no "Cathy" alias
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-05-19 19:21:44 -07:00
skymin3
a58e184872
Commands: Update help FAQ and improve !faq fails (#11118)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
https://www.smogon.com/forums/threads/clean-up-update-error-message-for-faq.3764560/ 
!faq fails no longer send the failed message message in chat, this is very helpful for room auth who are the users of broadcast commands
For whatever reason '!faq all' fails used a replybox? I can't think of a single non dev command that uses visible replyboxes in chat for fails, so changed this for an errorReply.
I cleaned up the wording of the /help faq, and I added some topics that were not there previously.
2025-05-19 01:18:28 -07:00
Lucas
5e9d392c28
Scavengers: Add Pointless twist (#11044) 2025-05-18 08:08:56 -07:00
pyuk-bot
0ee3291761
Teams: Automatically remove empty moveslots (#11119)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-17 21:36:44 -07:00
HoeenHero
7f4f4fe584 Timer: Properly detect first turn when automatically starting the timer
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-17 09:08:24 -04:00
Guangcong Luo
c5e63f84ab Fix crash when restarting with active Bo3
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-16 10:42:56 -07:00
Guangcong Luo
f13fe4495b Fix timer bug
nextRequest is no longer called on all players simultaneously,
meaning turnSecondsLeft might not be initialized when the timer starts.
2025-05-16 10:25:50 -07:00
Guangcong Luo
c5ef8ea3e5 Update timer for requests after updates
I figured PR #11105 would have some unintended side effect, but this
one isn't bad at all. There's no longer an easy way to tell whether
requests are move requests or not, but it's easy enough to instead
track the current turn.
2025-05-16 09:15:50 -07:00
skymin3
012b6716fb
Have invalid !rfaq fail over to !faq (#11096)
* !rfaq fail over to !faq 

Approved Suggestion: https://www.smogon.com/forums/threads/have-rfaq-fail-over-to-faq-if-a-match-is-not-found.3687458/ 

Code calls for RFAQ topics if that fails it checks the FAQ topic list. Sounds straightforward until you realize the faq broadcast fail command is archaic and for some reason the failed FAQ broadcast message still goes through on top of the actual faq error return message, along with the faq help, it's very messy I might just fix that next. This is bypassed by having the run broadcast call AFTER the topic is read as valid, so none of this nonsense can happen. I really thought this would be easy, turns out, not really (atleast for me).
2025-05-13 12:00:19 -07:00
Guangcong Luo
fe45b7d1bf Add |queryresponse|teamupdate| for /teams 2025-05-13 10:42:37 -07:00
skymin3
80c1460db8
Improve error messages shown to non-autoconfirmed (#11057)
https://www.smogon.com/forums/threads/improve-the-error-messages-shown-to-non-autoconfirmed-users-trying-to-access-certain-features.3737016/#post-10532853

A few of the non-autoconfirm error messages don't explain what autoconfirm means, which a new user likely doesn't know what autoconfirm is.
2025-05-13 09:12:52 -07:00
Kris Johnson
48d4a386b7 /roompromote: Fix punctuation on messages logged to staff room 2025-05-13 09:32:57 -06:00
Guangcong Luo
a7489f0995 Fix /removedaily with two args
Fixes #11103
2025-05-12 17:45:59 -07:00
shrianshChari
f2c7891775
UNO: Notify player if drawn card cannot be played (#11069) 2025-05-08 14:28:09 -07:00
Guangcong Luo
b979451e76 Fix uploading packed teams
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Packed teams weren't supported because `splitFirst` was called with
too high a limit. This fixes that.
2025-05-07 20:20:14 -07:00
Guangcong Luo
23c387f4a0 Add privacy to |queryresponse|teamupload|
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-07 19:45:01 -07:00
Mia
9a670548fa Teams: Account for OMs in validation 2025-05-07 20:14:52 -05:00
slainey
548f6911e9
Daily Spotlight: Add Delete button in list page (#11065)
---------

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-05-06 22:07:38 -07:00
Guangcong Luo
42d52e36e0 Refactor spotlights
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Fix /removedaily, adding a new "all" option to work like it's
documented to work, and fix the documentation.

Also remove support for legacy image format. A lot of functions were
async that didn't need to be.

Also remove an entirely unused sorting pass mistakenly introduced in
11ab3d83f8
(The queue was sorted, then immediately ignored to iterate it by index,
which is for the best, because showing the queue in any order other
than queue order is not useful.)
2025-05-05 07:05:59 -07:00
Guangcong Luo
a1e9066f9e Use class="details" and class="gray" 2025-05-05 04:43:05 -07:00
Karthik Bandagonda
6d7778167d
Auctions: Auto create players when using assignplayer (#11085)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-03 11:41:24 -05:00
HiZo
e7c5f126da
Teams: Sanitize OM Nicknames (#11068)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-04-27 20:51:10 -07:00
Mia
f2290ced37 Teams: Improve note on sharing teams onsite vs offsite
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-27 13:07:32 -05:00
TomOfTomKat
78bd34e2d9
Info: Update /smogonintro links (#11058)
Removed outdated links in /smogoninfo and replaced them with up to date ones:

https://www.smogon.com/forums/threads/introduction-to-smogon.3710821/
https://www.smogon.com/forums/threads/smogon-discord-server-directory.3652546/
2025-04-25 21:13:24 -06:00
TomOfTomKat
f86f08cb9a
Info: Update /tier (#11062)
Replace outdated (like, since XY outdated) links with current links.

I don't *love* dumping users at the Smogon Metagames forum, but there is no where else I am aware of that has all of our formats listed out.

Also updated the description to explain how /tier works and explain what type of information it contains.
2025-04-25 20:59:09 -06:00
slainey
6d455ab03e
Moderation: Clarify duration of default roombans (#11046)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
https://www.smogon.com/forums/threads/clarification-on-how-long-a-ban-lasts.3761482/ 

2 day bans do not say the amount of time which can be confusing to new users as they think a room ban is permanent. This commit does so without influencing week room ban text logs which already do note the 1 week time limit. This is an approved suggestion on the forums as well.
2025-04-24 07:05:13 -07:00
WifiLatency
9c1457ee9b
/ds: Collapsibles New Styling (#11041)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-04-21 05:07:44 -07:00
Kris Johnson
793fee5467 GitHub: Send HTML boxes through /raw 2025-04-20 23:40:13 -06:00
Marty-D
535657e766
Add new avatars
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-04-18 18:03:29 -04:00
Guangcong Luo
57380ae0b5 Redesign Smogtours plugin
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-17 21:02:00 -07:00
Alex "Mathy
d249e388e4
FFA/Multi: Fix simultaneous timeouts (#10311)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-17 20:47:39 -05:00
Alex "Mathy
6793b8a6ab
Fix timer not ending when player uses /leavegame (#11035) 2025-04-17 20:47:14 -05:00
Guangcong Luo
cc1f5c043f Redesign /tours
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-17 04:26:58 +00:00
Kris Johnson
a251474697 /tours: Remove `target="_blank" from room URLs 2025-04-16 21:21:26 -06:00
Kris Johnson
71f784c180 Tournaments: Make /tours usable in PMs/console 2025-04-16 21:03:51 -06:00
Lucas
32f62518f7
Mafia: Allow playercap to be changed as long as the game has not started (#11033)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-16 17:28:24 -04:00
Aurastic
777ce4d38a
Increase /addhtmlfaq character limit 8192 to 10000 (#11032) 2025-04-16 13:24:08 -07:00
Mia
77d0732af3 Chat: Add clarifying message to pages that require logins 2025-04-16 13:13:02 -05:00
Kris Johnson
ed9764bc23
Convert SSB and Rands Winrate chat plugins to tsx (#11030)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-15 13:37:41 -06:00
Sergio Garcia
fc23103de1
Fix random typos (#11020)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-13 23:59:36 -07:00
Guangcong Luo
14ec078746 Fix battles sending requests after they're over 2025-04-12 17:33:38 -07:00
Mia
0f8a31252b Teams: Link to the new website in more places
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-04-09 19:32:00 -05:00
Mia
0cd19ed250 Teams: Correct shareable link display 2025-04-09 19:29:17 -05:00
Mia
d758c21c64 Teams: Add static shortlinks to display page 2025-04-09 19:27:33 -05:00
Mia
ae542f3e0c Teams: Allow items/abilities/types as set nicknames
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
For OMs.
2025-04-09 11:48:49 -05:00
WifiLatency
c4a5ed50e4
/ds: Param to expand collapsible datasearches by default (#11023)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* Reimplement all as a param to automatically expand nonbroadcast results.

* Tests ensuring datasearches don't expand when broadcast with all
2025-04-08 23:53:40 -06:00
WifiLatency
7d989abe8e
/ds: Add comparing stats (#10984)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* Add comparing stats

* Fix duplicate comparison overwriting and error feedback

* Error on duplicates, invalid ranges, and muliple inequality operators

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-04-07 21:23:40 -06:00
WifiLatency
81b3471cae
Datasearch: Make results collapsible (#10995)
* Make ds collapsible

* Make other search commands collapsible.

* Remove all as a parameter for searches

* use readmore element with content attrs defined

* Rework to support chrome due to details linebreak quirk

* Move the toggle button down to the results line for broadcast commands
2025-04-07 21:19:47 -06:00
Kris Johnson
9ff1398c69
Use Chat.ErrorMessage instead of errorReply in more places (#11017) 2025-04-07 21:15:27 -06:00
Mia
291636a807 Suspects: Relax URL requirement
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Smogon generates the URLs now.
2025-04-05 23:22:02 -05:00
Guangcong Luo
7979ef12cc Allow Hangul in names
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-02 16:44:06 -07:00
Mia
1a9d691493 Youtube: Update roomid references in groupwatch list 2025-04-02 16:21:08 -05:00
Alex "Mathy
9ba3752d50
Dexsearch: Allow sorting by Pokedex number (#11001)
* Dexsearch: Allow sorting by Pokedex number

* fix whitespace
2025-04-01 00:17:47 -06:00
Mia
dd5c134603 Fix build
I'm going to set something on fire.
2025-03-31 18:45:37 -05:00
Mia
ef5ea9f0ff Chatlog: Fix searching linecounts for deleted rooms 2025-03-31 18:34:26 -05:00
Mia
5383667f2c Chatlog: Allow searching linecounts for deleted rooms 2025-03-31 18:28:44 -05:00
Mia
3dd18fdfa5 Chatlog: Don't check filesystem for database log searches 2025-03-31 18:22:16 -05:00
Mia
d7bfa16a36 Youtube: Update roomid 2025-03-31 12:57:38 -05:00
WifiLatency
bdeb19f26a
/ds: Add rule functionality (#10973)
* /ds metagame rules with moves compability.

* mon attributes compatibility

* pokedex rule compatibility.

* clean up. support convergencelegality

* updated dexsearchhelp. better error feedback.

* Fix negations for abilities and moves.

* Scrapped convergence, cleanup.

* Updated dshelp for the mapped rule param values.

* Fixed duplicate formes and tests reciving species.

* Support /ds stacking multiple rules

* Apply suggestions from code review

* tests for /ds rule functionality

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-03-18 00:50:32 -06:00
WifiLatency
7279f81cc3
Allow users to broadcast !avatar (#10961)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* command properly functions when duplicated but cant broadcast with the normal name.

* Prevent users from providing no argument.

* Removed extraneous null check and ternary assignment.

* Remove extraneous newline.

* Update server/chat-commands/avatars.tsx

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-03-14 13:55:56 -06:00
WifiLatency
232af5c19f
/ds: Fix searching for trapping and partial trapping moves (#10962)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* Adds trap as a search param to movesearch without modifying any moves.

* minor regex optimization.

* Implement in a less hacky manner.

* clean up adding both trapping statuses to the orgroup.

* Fixed conditional mixing trapped moves with other volatilestatuses.
2025-03-11 14:39:50 -06:00
WifiLatency
4346e3d34c
Add Restricted as a /ds Parameter (#10952)
* added restricted as a param for /ds using the species tags.

* comply with max line length.
2025-03-09 12:03:15 -06:00
WifiLatency
7bf04ad1e1
Implement searching for tiers by inequality to /ds (#10949)
* Implemented tier searching using inequalities.

* Fixed the value of OU being higher than CAP.

* Fixed AND searching for tiers with inequalities.

* Update server/chat-plugins/datasearch.ts

* Update server/chat-plugins/datasearch.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-03-09 12:03:06 -06:00
WifiLatency
f1ba8179c0
Add Number Generation Aliases to /learn (#10955)
* learn command generation shorthand now matches other datasearch commands.

* Retain support for generational prefixes.
2025-03-09 12:00:02 -06:00
pyuk-bot
ae626838bf
CGT: Fix level history page (#10930)
* CGT: Fix level history viewer

* More efficiently iterate the array in reverse
2025-03-09 11:53:20 -06:00
Distrib
18ca337e13
Helptickets: Fix user profile links with spaces (#10951) 2025-03-09 11:43:53 -06:00
Guangcong Luo
99ea179aaa Minor optimizations 2025-03-06 16:53:54 -08:00
Guangcong Luo
d9557375a0
Introduce "NatDex Mod" (#10939)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
"Standard NatDex" is very weird compared to how OMs usually work.

See "TierShift Mod" and "Godly Gift Mod". NatDex now gets its own mod,
which can be mixed into any other format, instead of needing to start
with NatDex.

This would make Min Source Gen overriding annoying, so it now defaults
to the current gen in Gen 9+, if Obtainable is set and +Past isn't. So
now you don't need to manually set Min Source Gen to enforce Obtainable
in Gen 9.
2025-03-06 03:40:36 -08:00
Syrinix
94f049ce19
Update /faq lostpassword (#10944)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
We are no longer doing password resets.
2025-03-05 04:59:58 -08:00
Guangcong Luo
74aa072bfb Fix /formathelp for past-gen formats
NatDex Mod refactor caught a bug. `format.gen` isn't meaningful.

...maybe it should be... Main concern would be perf impact, to load
all the datamods to get their gen. Probably not worth it?
2025-03-03 04:06:20 -08:00
Guangcong Luo
719bc1a87f Fix crash when leaving UNO game
Fixes #10821
2025-03-01 03:11:51 -08:00
Mia
2a88d42831 Seasons: Properly prioritize current format badge
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-02-27 18:14:25 -06:00
Mia
21b368a88f Users: Enforce ip-based punishments after rename as well as on login
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-02-27 14:05:39 -06:00
Guangcong Luo
1d417b4399 Update CONTRIBUTING.md
We no longer use sucrase, also some minor stuff.
2025-02-26 16:40:45 -08:00
Guangcong Luo
15c82dc327 Remove sucrase workaround 2025-02-26 16:13:32 -08:00
Guangcong Luo
73a04cdcba TypeScript: Enable noImplicitOverride
Some checks are pending
Publish to npm / test (push) Waiting to run
Publish to npm / get-version (push) Waiting to run
Publish to npm / npm-publish (push) Blocked by required conditions
Node.js CI / build (18.x) (push) Waiting to run
2025-02-26 14:38:32 -08:00
pyuk-bot
f03dbef9ff
CGT: Add command to view winrates + misc. updates (#10917)
* CGT: Add command to view winrates + misc. updates

* Update data/cg-team-data.ts

* Update data/cg-teams.ts

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-02-26 14:55:43 -07:00
Guangcong Luo
e25bec3620 Remove some implicit conversions
boolean -> number and number -> string should be explicit. Probably
string -> number should be, too, but I'm not ready to turn on the lint
option yet.

This was supposed to be part of the big ESLint refactor but I forgot
to push it. <_<
2025-02-25 22:55:01 -08:00
Guangcong Luo
78439b4a02
Update to ESLint 9 (#10926)
ESLint has a whole new config format, so I figure it's a good time to
make the config system saner.

- First, we no longer have separate eslint-no-types configs. Lint
  performance shouldn't be enough of a problem to justify the
  relevant maintenance complexity.

- Second, our base config should work out-of-the-box now. `npx eslint`
  will work as expected, without any CLI flags. You should still use
  `npm run lint` which adds the `--cached` flag for performance.

- Third, whatever updates I did fixed style linting, which apparently
  has been bugged for quite some time, considering all the obvious
  mixed-tabs-and-spaces issues I found in the upgrade.

Also here are some changes to our style rules. In particular:

- Curly brackets (for objects etc) now have spaces inside them. Sorry
  for the huge change. ESLint doesn't support our old style, and most
  projects use Prettier style, so we might as well match them in this way.
  See https://github.com/eslint-stylistic/eslint-stylistic/issues/415

- String + number concatenation is no longer allowed. We now
  consistently use template strings for this.
2025-02-25 20:03:46 -08:00
Mia
51f1d6e4ca Info: Update badge faq link
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2025-02-17 14:38:03 -06:00
pyuk-bot
9f58961dd3
CGT: Track wins/losses for level 100 Pokemon (#10909)
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2025-02-16 00:40:12 -07:00
pyuk-bot
e97ea8c7fd
CGT: Count wins/losses in public-room tour-battles (#9999) 2025-02-09 23:34:45 -06:00
Mia
5a8b8465ff Repeats: Disallow use in personal rooms 2025-02-09 20:56:37 -06:00
Kris Johnson
355f6b00f4 Mix and Mega: Fix some validation
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2025-02-03 23:38:17 -07:00
Kris Johnson
3281f6adb0
Mix and Mega: Expand usable items (#10865)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-02-03 19:18:22 -07:00
Mia
448272b16f Core: Fix /help for namespaces / private namespaces
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-02-02 13:46:27 -06:00
pyuk-bot
7bb2fd1869
Overhaul 'SwitchIn' event for more accurate effect resolution order (#10766) 2025-01-28 16:51:17 -06:00
Mia
ec1c909e3c Fix typo 2025-01-28 14:35:23 -06:00
Mia
46800084b9 Chat: Ensure 'does not exist' messages don't leak private commands
A private command table named /foo - say, with /foo bar and /foo baz - would leak its existence when /foo is used, reporting back that the command '/foo ' does not exist - whereas a nonexistent command would not have the trailing space.
2025-01-28 14:31:06 -06:00