Commit Graph

2123 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
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
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
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
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
pyuk-bot
7bb2fd1869
Overhaul 'SwitchIn' event for more accurate effect resolution order (#10766) 2025-01-28 16:51:17 -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
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
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
Mia
432a62b095 Chatlog: Trim querystrings from /gbc 2024-12-30 20:24:49 -06:00
Mia
37a789ffd3 Helptickets: Add /am edithistory to the staffintro of chat tickets 2024-12-30 20:17:13 -06:00
Mia
558245b2d4 Seasons: Show the correct formats for old season records
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-12-28 19:59:33 -06:00
larry-the-table-guy
ab5f71338f
BattleSearch: Replace lookahead with union (#10679)
PCRE lookahead was causing the regex to be pathologically slow.
2024-12-16 22:31:42 -06:00
Mia
d64d709ace Abuse-monitor: Fix crash 2024-12-16 22:10:22 -06:00
Kris Johnson
e717e55be9 Fix permissions
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-12-14 18:14:34 -07:00
Kris Johnson
83ee087d73 last.fm: Add command to toggle YouTube API 2024-12-14 18:13:58 -07:00
Kris Johnson
7ae58f81d6 Mix and Mega: Fix exploit with Pokemon using their native mega stones
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-12-13 14:48:39 -07:00
HiZo
443339937f
Mix and Mega: Use decimeters to prevent rounding (#10750) 2024-12-13 09:19:53 -07:00
Kris Johnson
2b03102954 Mix and Mega: Make Aggronite great again 2024-12-12 11:07:52 -07:00
PartMan
8563a5658f
Datasearch: Don't escape HTML for regular text messages (#10692) 2024-11-27 13:15:53 -07:00
livid washed
b107d77f5c
Implement [Gen 9] Battle Factory (#10689)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
* Implement Gen 9 Battle Factory

* Make OU mons female when possible for Cute Charm Enamorus

* delete yanmega

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

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

* Apply suggestions from code review

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

* Apply more suggestions from code review

* Simplify two lines

---------

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-11-26 10:12:39 -07:00
Lucas
e315582326
Scavs: Add a command to forcibly queue hunts (#10650)
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
2024-11-25 06:21:38 -08:00