Commit Graph

23714 Commits

Author SHA1 Message Date
The Immortal
13c163294d Remove suspect notices 2020-10-01 01:00:03 +04:00
The Immortal
7855d4772d Random Battle improvements 2020-10-01 00:52:55 +04:00
Annika
1c4b57b56c
Use translated German website pages (#7440) 2020-09-30 12:32:56 -07:00
Annika
fa571d3b4b
Modlog viewer: Update regex for /ml roomid, search (#7444) 2020-09-30 12:32:15 -07:00
Annika
212b35b2fa
Modlog: Support exact user searches (#7443) 2020-09-30 11:22:49 -07:00
Annika
e24ec79b92
Fix room promotion messages 2020-09-30 11:13:25 -07:00
Annika
5bad212da8
Apply chatfilters to !code (#7442) 2020-09-30 10:32:27 -07:00
The Immortal
beffbc5815 Update past gens LC 2020-09-30 17:35:16 +04:00
Annika
98b9bd69b1 Fix more modlog attributions 2020-09-29 17:39:28 -07:00
Guangcong Luo
a2513ae1c0 Fix VS Code TypeScript setting 2020-09-29 15:56:10 -07:00
Guangcong Luo
3d68248efa Update to latest eslint
We're skipping two major typescript-eslint versions, so there are a
bunch of changes here, including:

- it's catching a lot of things it didn't catch in the past, for
  reasons unclear to me

- no-unused-vars has to be explicitly disabled in global-types now

- a lot of `ts-ignore`s were never necessary and have been fixed

- Crashlogger can now handle being thrown things that aren't errors.
  This has never been a problem in the past, but to satisfy TypeScript
	we might as well not die in a fire on the off chance someone tries to
	`throw null` or something.
2020-09-29 15:28:08 -07:00
Guangcong Luo
2bcea34447 Support ./pokemon-showdown simulate-battle -S
simulate-battle now has a new option: --spectate.

As a recap:

-D --debug: simulate in debug mode

-R --replay: output only the omniscient (debug) replay, rather than the
  full stream

-S --spectate: output only the spectator replay, rather than the full
  stream
2020-09-29 15:28:07 -07:00
Mia
b7630b70cf
Chatlog: Handle ErrorMessage properly (#7438) 2020-09-29 14:30:50 -07:00
1Mitsuki
704bd2195b
Update Portuguese translation wording (#7441) 2020-09-29 13:47:04 -07:00
The Immortal
6ca7c8b9d0 Add new event Pikachus 2020-09-29 23:42:35 +04:00
Kris Johnson
8d080ff320
UNO: Fix timestamp and switch to Chat.ErrorMessage (#7437) 2020-09-29 08:53:21 -07:00
Annika
cdd6a4ce31 Moderation: Save replays for offline warns 2020-09-28 22:10:17 -07:00
Mia
a9645d29f1 Modlog: fix defaulting to roomid in /modlog 2020-09-28 18:04:57 -05:00
Mia
1eb2c77208
Modlog viewer: Improve UI (#7436) 2020-09-28 16:01:05 -07:00
Annika
b3a5f9e59f
Moderation: Refactor room promotions to a function (#7426) 2020-09-28 15:49:26 -07:00
Kris Johnson
c6640866fe
CAP: Update Sample Teams link 2020-09-28 16:44:23 -06:00
Annika
6e2a336975 Don't duplicate attributions in modlog entries 2020-09-28 15:26:30 -07:00
Annika
c2861c2411 Chat: Fix CommandContext#globalModlog 2020-09-28 15:22:25 -07:00
Annika
f2ef093493
Modlog: Parse entries in the child process (#7435) 2020-09-28 12:04:06 -07:00
Charlie Kobayashi
493bd033c7
Scavengers: Add October twist (#7433) 2020-09-28 11:21:36 -07:00
Annika
f1b4e3d43a
Modlog: Refactor to use ModlogEntry objects (#7403) 2020-09-28 11:06:30 -07:00
Annika
1a9293e2cf
Make /yearlock write to the global modlog (#7431) 2020-09-28 10:23:40 -07:00
Marcell
38d143322e
Update Portuguese translation for /groups (#7432) 2020-09-28 10:22:53 -07:00
The Immortal
ff864f976d Remove OU suspect 2020-09-28 16:06:21 +04:00
Guangcong Luo
a7c902328f
Refactor staffAutojoin (#7429)
`room.settings.autojoin` and `room.settings.staffAutojoin` are now
merged.

Staff autojoin rooms are now simply regular autojoin rooms with a
modjoin setting. You simply autojoin all autojoin modjoin rooms that
you're allowed to join.

Fixes #7413
2020-09-27 17:47:15 -07:00
Marcell
808093ce43
Update German translation for /groups (#7430) 2020-09-27 17:22:06 -07:00
Guangcong Luo
d3ecb74121 Fix bug in ReadStream buffer expansion
This prevented the buffer from properly expanding as needed for long
reads.

This also fixes a bug when the buffer wasn't being used optimally.
2020-09-27 16:44:40 -07:00
Annika
3b3bbd583d Add 'roomprizewinner' to the room permissions list
This will allow `/permissions` to set the required rank to promote to Prize Winner, just as with other room groups.
2020-09-27 16:35:09 -07:00
The Immortal
b67701d8a4
Add suspect tests plugin (#7427) 2020-09-27 15:41:04 -07:00
Annika
b865fe537c
Trivia: Fix Mastermind (#7419) 2020-09-27 13:03:06 -07:00
Distrib
8f15bc3b30
Update French translation for /groups (#7428) 2020-09-27 10:59:38 -07:00
The Immortal
3a929468da Add Pikachu-World's learnset 2020-09-27 21:43:00 +04:00
Marty-D
54f03f033c Learnsets: Fix Raticate's Gen 7 TMs 2020-09-27 12:25:00 -04:00
Guangcong Luo
9fe45238f5
Introduce chunk readers for ReadStream (#7215)
This adds new functions `stream.byChunk(bytes)`, `stream.byLine()` etc
which parse a `ReadStream` into an `ObjectReadStream<string>` which
can then be consumed with for-await.

Fixes #7195
2020-09-27 08:55:59 -07:00
Guangcong Luo
d429d58bc6 Fix suspect test ladders
We deployed a new suspect test system a few months ago, but we had to
back out of it when it didn't work as expected. This fixes the bug that
made it not work. In the future, setting `rated: "[Gen 8] Format Name"`
in `formats.ts` will cause ladder games in that format to actually
go in the specified format's ladder, instead of its own.
2020-09-27 08:43:08 -07:00
PartMan
6cb31fe2a6
Fix Flooring in /statcalc (#7420) 2020-09-27 06:56:58 -07:00
Mia
f7288df665 Fix build 2020-09-26 23:27:51 -05:00
Mia
62bcce1d55 Plugins: Don't try-catch ENOENT errors when using FS.readIfExists() 2020-09-26 23:02:45 -05:00
1Mitsuki
1fea013e3c
Fix typo in Portuguese translation (#7423) 2020-09-26 20:31:24 -07:00
Charlie Kobayashi
4be093ec56
Fix injection issue in /makegroupchat (#7424) 2020-09-26 20:30:57 -07:00
Charlie Kobayashi
eee5e5fa63
Quotes: escape some HTML (#7425) 2020-09-26 20:29:32 -07:00
Annika
1c5a8086b5
Check username length in /forceroompromote 2020-09-26 12:58:33 -07:00
Mia
78933408bf
Quotes: Move to a chat plugin (#7421) 2020-09-26 08:11:42 -07:00
Mia
3352e11b86
Add the alias /profile to /whois (#7422) 2020-09-26 02:28:11 -07:00
Kris Johnson
ecff78719c
Move Lycanroc-Dusk to UUBL 2020-09-26 00:41:54 -06:00