Commit Graph

3695 Commits

Author SHA1 Message Date
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
Mia
432a62b095 Chatlog: Trim querystrings from /gbc 2024-12-30 20:24:49 -06:00
Mia
dc2f40f5d8 Moderation: Automatically /allowname unnamelocked names 2024-12-30 20:19:35 -06:00
Mia
e026a368b6 Moderation: Ensure unnamelocks are modlogged properly 2024-12-30 20:19:15 -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
Mia
397b68c2a4 Fix typo
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2024-12-24 12:00:38 -06:00
Mia
7e8b7a02d4 Artemis: Stop throwing 429 errors
Some checks are pending
Node.js CI / build (16.x) (push) Waiting to run
We already throttle requests when we get 429s. We don't need to log it constantly too.
2024-12-24 02:01:51 -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
bingingem
602e1d872f
/weakness: Add fuzzy matching (#10316)
* Weakness: add fuzzy matching to command

* fix linting errors

* removing `any` so TypeScript infers typing

* merge master branch properly

* push each species type individually instead  of string array
2024-12-16 22:30:54 -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