Commit Graph

2239 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
Mia
4d314e3f5e Ladder trackers: Suppress user-facing errors on restoration
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-07-18 14:28:08 -05:00
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
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
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