Commit Graph

3710 Commits

Author SHA1 Message Date
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
Mia
5cac4ed3e7 Core: Ensure /help doesn't leak private commands with incorrect 'does not exist' messages 2025-01-28 14:28:04 -06:00
Mia
efadd59f6d Fix typo
Got unstaged while I was fixing some replays spacing issues that got automatically generated. Boo.
2025-01-28 14:01:21 -06:00
Mia
44718bb847 Stop using Math.random in more critical spots 2025-01-28 14:00:15 -06:00
Karthik Bandagonda
c8bc6be7be
Auctions: Remove formatted bid messages + only send errors on bids to the bidder (#10813) 2025-01-09 23:04:33 -07:00
Karthik Bandagonda
a4c3528ef2
Auctions: Fix addplayer command + styling changes (#10795)
* Auctions: Fix addplayer command

* hijack pr for styling changes

* minor formatting change

* Add team name column to overall pricelist

* Add support for max players

* Don't send bid error messages to everyone

* Remove tiers hover text, add hover text of entire draft list when hovering over a teams player list
2025-01-09 22:56:49 -07:00
motogp-bit
4cca6dd174
Mafia: Add tracking of N0 actions. (#10771)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-08 18:09:45 -05:00
Dirain1700
eb935a4aca
Tournaments: Hide toolbox if opponents get DQed (#10769) 2025-01-04 13:16:02 -07:00
dot-Comfey
69eac3893e
Trivia: Fix crash and Number mode game cap (#10753)
* Trivia: Fix crash and Number mode game cap

Discussed with Trivia auth.

Fixes an issue in Number mode where the game fails to end after a specified amount of questions, and fixes a crash caused by ending a game with no participation

* Update server/chat-plugins/trivia/trivia.ts

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

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-01-04 13:15:05 -07:00
larry-the-table-guy
b790eb8309
Remove dead code for dex initialization (#10793)
As of PR #10641, these are no longer necessary.
2025-01-04 13:14:22 -07:00
aQrator
d8689df5d0
Update /scavhelp staff to include /scav sethostpoints (#10788)
Purely textual change to help find commands for the scav room
2025-01-04 13:13:43 -07:00
Dieter Reinert
31934d775f
Calculator: Fix base prefix logic for zero results (#10778)
Previously, `/calculate` would fail to include the correct base prefix (`0x`, `0b`, `0o`) when the result was `0` because the code used a falsy check (`if (result)`). This commit replaces that condition with `if (Number.isFinite(result))`, ensuring zero is properly displayed in the requested base.
2025-01-04 13:13:31 -07:00
Karthik Bandagonda
d0e1b686f4
Auctions: Add Tiers Not Played + changes to bidding (#10787)
* Auctions: Add Tiers Not Played + changes to bidding

* Update server/chat-plugins/auction.ts

* Update server/chat-plugins/auction.ts

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-01-04 12:29:55 -07:00
Marty-D
98bd633e1b
Add new avatars
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2025-01-02 17:54:05 -05:00
Dieter Reinert
d0152f53b4
Roomlogs: Retry on transient DB connection Errors (#10776)
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2024-12-30 20:55:48 -06:00
Mia
82ea5a4ce6 Helptickets: Add 'reported user' modlog button to Inap Pokemon Names tickets 2024-12-30 20:35:36 -06:00
Mia
9fb12ba78c Helptickets: Make reported usernames clickable 2024-12-30 20:27:33 -06:00