Commit Graph

3877 Commits

Author SHA1 Message Date
Kris Johnson
336f1d58f1 Make SCL rooms super secret
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-09-11 18:00:58 -06:00
ACakeWearingAHat
c3e0bbd61d
Revamp Gen 9 Free-For-All Random Battle (#11406)
* WIP free-for-all revamp

* bonus touches

* Create ffa-sets.json

* Most stuff besides items

* Fix plate distribution logic

* The Palafin thing

* Update teams.ts

* Update index.ts

* Update server/chat-plugins/randombattles/index.ts

Co-authored-by: pyuk-bot <21160928+pyuk-bot@users.noreply.github.com>

---------

Co-authored-by: MacChaeger <21160928+pyuk-bot@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-08-31 23:58:46 -06:00
Kris Johnson
8797d4628c Remove inactive ladders 2025-08-31 23:57:15 -06:00
Mia
06325a0b57 Room-battle: Fix crash in ladder update
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-17 13:43:37 -05:00
Mia
16765c31f7 Helptickets: Add usercard for reporter 2025-08-17 13:42:19 -05:00
Mia
ffe2f3111b Helptickets: Properly log claim duration for text tickets
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-14 21:51:44 -05:00
Karthik99999
7143879536 Best-of: Check for overall winner after ties
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-13 22:26:26 -04:00
Mia
99c0799376 Teams: Don't crash on close when database not enabled
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-12 11:05:11 -05:00
Karthik99999
f1055d9c1c Spotlights: Fix missing comma in source
I'm bad
2025-08-11 18:48:06 -04:00
Karthik99999
2ceb8375b6 Spotlights: Remove image dimensions from source 2025-08-11 18:42:34 -04:00
Mia
fdffa2abdd Rooms: Prevent expiry of Bo3 parent rooms
Apparently some games last long enough that the parent rooms will expire due to the 15 minute limitation, terminating the child games as well. So we're just going to prevent those from expiring while child games exist. If they're truly inactive, they'll get hit once the child games expire.
2025-08-11 16:57:07 -05:00
Mia
d1efa30cf4 Fix TeamValidatorAsync global
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-11 15:31:42 -05:00
Lucas
7e6cea3605
Mafia: Add Search Capability (#10682)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-10 13:52:03 -04:00
Waleed Hassan
ea3a0579bc
PW replay should persist through roomid changes (#11342) 2025-08-07 16:51:04 -07:00
Lucas
ccd9b5cae7
Update ChatBats winrates tracking (#11338)
* Update ChatBats winrates tracking

Set ChatBats to have no minimum ELO to start tracking winrates

* Update winrates.tsx

* Update winrates.tsx
2025-08-07 16:13:29 -06:00
Slayer95
018ea4abef
Support running PS in a single process again (#11331)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-07 00:29:18 -07:00
Waleed Hassan
f891287bac
/savereplay: Stop re-generating passwords (#11328)
The same password is now used across all `/savereplay`s in a battle so
replay links now don't get broken just because someone saved the replay
after you.
2025-08-06 20:19:08 -07:00
Emikatana
21495a92f1
Add new Pet Mods Leader's Choice (ChatBats) and Remove Previous Leader's Choice (#11309)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* adding ChatBats

* ChatBats abilities

* adding Format data for ChatBats

* items for ChatBats

* moves for ChatBats

* chatBats pokedex

* chatbats learnsets

* Delete data/mods/ccapm2024 directory

* ChatBats random sets

* ChatBats teams.ts

* snow -> snowscape

* fix

* updating PRNG code

* fixing outdated prng code

* fixing more outdated PRNG code

* fixing more outdated code

* (hopefully) fixing error messages

* level fixes

* fixing errors for real

* fix??

* fuck this im manually doing. forme change

* fix

* im an idiot

* fix ???

* fixing setAbility not properly overriding cantsuppress abilities

* fixing Koraidon not having proper max HP

* oop i bad

* still dumb somehow

* fix????

* fixing duplicate message

* nvm

* fixing message errors

* wording change

* updating link

* wording update part 2

* removing testing hardcodes

* +Magneton

* +magneton

* +Magneton

* +Magnet Bomb changes

* +Magneton

* +Magneton

* animation test

* adding test hardcodes

* fixing magneton getting weird sets

* fixing Order Up breaking when used by Mew + Magnet Bomb fix

* more tests

* fixing Biogenesis to properly apply mew's base types

* fixing Mew again

* fixing Biogenesis for real

* removing test hardcodes

* removing debug message I accidentally left in

* enforcing Salamence to test BSC

* im badly

* Testing done, reverting changes

* adding description for Magnet Bomb

* Add Chatbats to rwr tracking

* Fix linting issues

* fixing lint issues

* fixing lint issues

* fixing lint issues

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* fixing mistake

* making Thunder Kick a seperate move

* adding Zarel's suggestion

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>

* fixing lint issues

* fixing lint issues

* fixing lint issues

* now??

* i hate this

* why does it care about how many indentations are in front of comments

* add hail mary (Delibird ability)

* add delibir

* Add Delibird

* add Delibird

* add Delibird

* Add Delibird

* ok so I'm an idiot

* Update config/formats.ts

* Apply suggestions from code review

* fixing a problem

* fix

* fixing errors

* fix

* fix

* fixing most of the errors

* fix

* apparently this file is not needed?

* fixing thunderkick not working

* fixing all the errors

* fixes

* fixing errors

* fix

* fixing lint issues

* fixing

* updating teambuilder

* ok

* final fixes

* ok ok ok

* fuck this stupid bss factory shit

* i hate

* ughhh

* plsss

* deleting all the BSS factory code as it's not needed and keeps throwing errors

* finishing

* Cleaning up teams.ts

* oop

* fixing

* fixes

* fix lint

* adding Data Preview to ChatBats

* Update teams.ts

* Update data/random-battles/chatbats/teams.ts

* Update config/formats.ts

* Update data/random-battles/chatbats/teams.ts

* Update data/random-battles/chatbats/teams.ts

* Update data/random-battles/chatbats/teams.ts

* Update config/formats.ts

* Update config/formats.ts

* Apply suggestions from code review

* Apply suggestions from code review

* oops

* Update moves.ts

* Apply suggestions from code review

---------

Co-authored-by: Lucas <33839844+Lucas-Meijer@users.noreply.github.com>
Co-authored-by: ORH <emi@ORHs-MacBook-Air.local>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-08-06 01:05:03 -06:00
Kris Johnson
2f03ce912d /dt: Move crit rate next to weight 2025-08-05 23:55:04 -06:00
JCLH-ETS
2586a8f39b
/dt: Show crit rates for Pokemon in Gen 1 (#11336)
* Changed /dt1 command to show gen 1 Pokemon crit rates

* Fixed code style to be lint-approved

---------

Co-authored-by: Jean-Christophe <legerhe@gmail.com>
2025-08-05 23:51:24 -06:00
Mia
4a8341586a Database: Fix PG syntax error in update, remove unnecessary set method
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-05 16:38:28 -05:00
Mia
d32ad3dc98 Teams: Insert dates properly after migration
Numbers don't get validated right ffor dates, here. Only ISO strings and __maybe__ date objects? Definitely ISO strings, though
2025-08-04 22:03:29 -05:00
Mia
70f9725113 Seasons: Remove logging for failed ladder requests 2025-08-04 22:00:29 -05:00
Mia
18cdce9803 Fix merge errors 2025-08-04 21:55:33 -05:00
Guangcong Luo
31a4289cc6
Refactor Teams plugin to use lib/database (#11109)
* Refactor Teams.save

Fixes a bug where passwords were changed every time a team was updated.

* Refactor Teams to use lib/database

* Add unit tests

(This found a bug which has also been fixed)

* Test more things

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2025-08-04 21:51:42 -05:00
dot-Comfey
15c2716034
Update help ticket page for lost password (#11275)
* Update help ticket page for lost password

* Update server/chat-plugins/helptickets.ts

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2025-08-04 21:49:09 -05:00
Mia
7b8acfeadb Add server version to /version
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-04 15:55:28 -05:00
Mia
3b5e0b558b Ladder tracker: Allow viewing leaderboard without broadcasting 2025-08-04 15:02:03 -05:00
Mia
d51d959669 Ladder tours: Stop logging failed requests 2025-08-04 14:07:41 -05:00
Mia
bd0d0ebedb Teams: Trim arguments on save
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-08-02 00:36:26 -05:00
Mia
5fafd91d24 Teams: Report back blocked names to users 2025-08-02 00:30:57 -05:00
adrivrie
1931b23006
Random Battles: July 2025 balance patch (#11320)
Some checks are pending
Node.js CI / build (20.x) (push) Waiting to run
Node.js CI / build (22.x) (push) Waiting to run
Node.js CI / build (24.x) (push) Waiting to run
* Random Battles: July 2025 balance patch

* lower babyrands elo floor for winrate gathering

* grammar fix
2025-08-01 09:58:55 -06:00
Mia
8cc6743a47 Teams: Do not redirect to a page when upload fails
Some checks are pending
Node.js CI / build (20.x) (push) Waiting to run
Node.js CI / build (22.x) (push) Waiting to run
Node.js CI / build (24.x) (push) Waiting to run
2025-07-31 18:56:48 -05:00
Mia
503030c0d8 Fix typo 2025-07-31 10:11:55 -05:00
Mia
c135ecdce8 Ladder tours: Don't broadcast updates on failure 2025-07-31 09:58:08 -05:00
Mia
20e5727112 Ladder tours: Suppress JSON errors
This happens when the PHP site throws errors. Which happens too much because PHP sucks ass.
2025-07-30 23:50:40 -05:00
Aurastic
3f0c9fe991
Don't consider user active on '/cmd rooms' (#11286)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-07-30 04:35:18 -07:00
Dieter Reinert
e716ef1aba
Info: Prevent crash in makecustomchallenge when user parameter is missing (#11296)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-07-24 09:00:40 -07:00
Mia
4cd2f90abf Teams: Increase max team size to 50 sets
Some checks failed
Node.js CI / build (18.x) (push) Waiting to run
Publish to npm / test (push) Has been cancelled
Publish to npm / get-version (push) Has been cancelled
Publish to npm / npm-publish (push) Has been cancelled
2025-07-24 01:10:25 -05:00
Mia
2467596832 Teams: Censor nicknames on display, not upload 2025-07-24 00:06:03 -05:00
skymin3
8691ace824
Update /help othermetas (#11182)
Approved Forum suggestion: https://www.smogon.com/forums/threads/make-the-om-help-command-more-helpful.3766005/

the /om is a bit weird, it's just a link to the forums not a link to direct information like /om all does, so I changed the wording there. !om is also changed since it's not descriptive.
2025-07-23 23:48:29 -05:00
Guangcong Luo
7a9e535e35
Vendor node-static (#11295)
Also includes a decent amount of refactoring to bring it in line with Showdown code standards.

---------

Co-authored-by: Slayer95 <ivojulca@hotmail.com>
2025-07-23 21:19:55 -07:00
Mia
1487d52db0 Teams: Make shareable link clickable 2025-07-23 23:10:36 -05:00
Mia
ef56c668d2 Suspects: Fall back on existing suspect URL in edits if need be
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-07-22 12:51:49 -05:00
Mia
99af09ba7c Chat: Ensure absolute plugin files are always loaded
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Accounting for loading outside of the normal dir
2025-07-21 17:28:19 -05:00
Mia
0899c4b7b3 Chat: Annotate commands with plugin names for categorization 2025-07-21 17:15:40 -05:00
Mia
9ca1b0c35f Chatlog: Rewrite argument protocol for searches
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-07-19 00:28:33 -05:00
Mia
e9fd0b76dd Chatlog: Render search arguments in display 2025-07-19 00:12:40 -05:00
Mia
3823ec2471 Fix typo
WHY DID THIS NOT GET STAGED I SPECIFICALLY CLICKED STAGE
2025-07-19 00:10:07 -05:00
Mia
546dfd07ff Searchlog: Standardize handling of search parameters
Makes this easier to extend for the future, too.
2025-07-19 00:08:20 -05:00