Annika
202bb7affe
Modlog: Properly clean up streams
...
We don't need a reason to differentiate between whether or not a modlog stream was never initialized or was previously destroyed, and we don't need a Map with 8.2 million keys.
2020-11-03 15:44:57 -08:00
Mia
56501355d7
Support ignoring room invites ( #7180 )
2020-11-03 10:15:17 -08:00
Leonard Craft III
920af21aac
Abilities: Add isPermanent flag ( #7614 )
2020-11-03 10:31:11 -05:00
Annika
ee79159a25
Helptickets: Don't make global modlog entries
2020-11-02 21:58:46 -08:00
Annika
aa069ce8fd
Support disabling modlogs ( #7619 )
...
Co-authored-by: Christopher Monsanto <chris@monsan.to>
2020-11-02 22:59:31 -05:00
Mia
89d127eafd
ProcessManager: Add a static execFile ( #7566 )
2020-11-02 11:35:07 -08:00
Mia
e2cb3a1f57
Chatlog: Support searching for a user ( #7591 )
2020-11-02 08:50:58 -08:00
Mia
c0baf2135d
Make /addline broadcastable and rename to /pline ( #7621 )
2020-11-02 08:47:55 -08:00
Mia
c5907735ef
Tournaments: Start timer in all battles when forcetimer is activated ( #7624 )
2020-11-02 08:42:33 -08:00
Mia
22a410afea
Support basic text formatting in polls/announcements ( #7623 )
2020-11-02 08:42:03 -08:00
Mia
cbf4a450da
Add /vsl alias to viewspotlights ( #7622 )
2020-11-02 08:40:41 -08:00
Annika
3b709ac34f
Fix permission check for /addline
2020-11-01 18:43:02 -08:00
Annika
dab9f570f1
Modlog: Don't write alts if there are no alts
2020-11-01 16:25:36 -08:00
Annika
7f2dec0797
Modlog: Avoid optional properties in ModlogEntry ( #7613 )
...
* Modlog: Avoid optional properties in ModlogEntry
* Use a type
* Make IP nullable
* Add NOT NULL constrains
* Fix typo
2020-11-01 14:07:01 -08:00
Kris Johnson
909419ca27
Fix /randbats interaction with Gen 2 sets
2020-11-01 14:23:40 -07:00
Guangcong Luo
db4963e49f
Improve "click here" error message
2020-11-01 02:06:24 +00:00
Annika
06535b4235
Modlog: Disallow duplicates in ModlogEntry#alts
2020-10-31 14:13:23 -07:00
Annika
06cbdada99
Don't allow forcerenamed usernames to be reused ( #7609 )
2020-10-31 05:54:17 -07:00
Distrib
3909191904
Display the announcement whith /announcement ( #7612 )
2020-10-31 05:52:17 -07:00
Annika
923b69cac6
Trivia: Prevent stalemates in Infinite mode
2020-10-30 18:09:25 -07:00
Annika
58d8a2af70
Fix API for writing to the global modlog
2020-10-30 16:57:29 -07:00
Annika
b9d993495d
Modlog: Fix crash in writing global modlog
2020-10-30 16:36:55 -07:00
Annika
2f130e8762
Modlog: Support logging to a SQLite database ( #7513 )
...
* Modlog: Support logging to a SQLite database
Co-authored-by: Christopher Monsanto <chris@monsan.to>
2020-10-30 19:27:25 -04:00
Annika
84ff0cd90c
Fix permission checks for global promotions
2020-10-30 15:59:40 -07:00
HoeenHero
f158940783
Don't report multiple punishments for a single room ( #7606 )
2020-10-30 09:51:10 -07:00
Annika
1d9c24c382
Users: Don't merge unregistered names across IPs
...
Fixes #7594
2020-10-30 08:46:52 -07:00
Annika
1ab6091551
Helptickets: Properly quote and escape button HTML
2020-10-29 19:30:06 -07:00
Annika
7db0505e7b
Moderation: Remove whitespace
2020-10-29 18:11:27 -07:00
Annika
2469dd7c08
Moderation: Actually make groupchatbans hotpatchable
2020-10-29 18:04:18 -07:00
Annika
b6326d7a86
Trivia: Document /trivia move
2020-10-29 15:59:31 -07:00
Marty-D
89050aaefb
Add missing Trainer avatars
2020-10-29 15:22:42 -04:00
Annika
3ed4a34270
ANOTD: Change tagline to quote
...
Requested by Anime and Manga staff
2020-10-29 12:07:26 -07:00
Kris Johnson
ab6e173e24
Move natures into their own file ( #7601 )
2020-10-29 08:38:03 -07:00
Mia
251f801210
Studio: Only request YT video data once ( #7595 )
2020-10-29 08:31:54 -07:00
Mia
6f22b27e15
Ticketbans: Use the user object ( #7596 )
2020-10-29 08:11:47 -07:00
Mia
458b47cb39
Chatlog: Allow non-trusted secret room ROs to view logs ( #7597 )
2020-10-29 06:48:55 -07:00
Guangcong Luo
2fd138f82c
Reorganize README
...
The README has been split up so guides for PS's different use-cases are
easier to find.
2020-10-29 13:17:26 +00:00
Annika
efcbc6ce3d
Include groupchat bans in /punishments
2020-10-28 18:59:28 -07:00
Annika
62f1bd14fc
Chat plugins: Make viewing source respect /permissions
2020-10-28 16:59:45 -07:00
Mia
c67b745d44
Chatlog: Carry opts over when switching days ( #7584 )
2020-10-28 16:50:57 -07:00
Annika
0164af53e4
Support banning users from using groupchats ( #7558 )
2020-10-28 14:12:42 -07:00
PartMan
a4a3e385e8
Fix G-Max moves not showing up in movesearch ( #7555 )
...
Happened because G-Max moves had move.isNonstandard as 'Gigantamax'.
2020-10-28 13:02:37 -07:00
Annika
73078447a5
Punishments: Make rangelocks persistent ( #7545 )
...
This solves the issue with yearlocks disappearing.
2020-10-28 12:08:52 -07:00
Annika
d4cb0c71c6
Hosts: Support displaying shared IPs ( #7568 )
2020-10-28 12:08:29 -07:00
Annika
b226a501b3
Helptickets: Add button for the reporter's modlog ( #7560 )
...
As per (this suggestion)[https://www.smogon.com/forums/threads/staff-suggestions-bugs.3514540/page-17#post-8634198 ].
2020-10-28 11:41:12 -07:00
Mia
6f721e31ff
CommandContext: Add a method for getting roomgames ( #7531 )
2020-10-28 05:20:33 -07:00
Annika
f2a4798bb8
Chatfilters: Fix reasons displaying as undefined ( #7579 )
2020-10-27 19:44:53 -07:00
Charlie Kobayashi
4272005e42
sendReplyBox: fix interaction with hidelines ( #7577 )
2020-10-27 19:32:03 -07:00
Annika
a273e53e08
Make /clearstatus log to Staff room ( #7557 )
...
`/forcerename` and other global punishments do this
2020-10-27 19:24:09 -07:00
Guangcong Luo
3b4a3ba7e0
Improve custom rule validation
...
Stray spaces are now consistently allowed in `/tour rules` and
`/challenge`, but are not allowed in `formats.ts`.
Improves #6811
2020-10-28 02:18:52 +00:00
Guangcong Luo
a38f0597f8
Remove last vestiges of tslint
2020-10-27 22:49:00 +00:00
Guangcong Luo
c9759954b9
Remove sim/global-variables.d.ts
...
The sim no longer uses any global variables, so this can and should be
removed.
`server/global-variables` has also been cleaned up, since I'm working
on this.
2020-10-27 22:03:14 +00:00
Konrad Borowski
6fe378b246
Indicate pending promises in /eval ( #7592 )
2020-10-27 14:33:04 -07:00
Mia
34db61539e
Youtube: Cache requested video data ( #7593 )
2020-10-27 14:11:30 -07:00
Mia
d045890884
/show: Throttle requests ( #7589 )
2020-10-27 23:02:02 +04:00
Mia
2e864524e0
Chatlog: Use new username html tag ( #7519 )
2020-10-27 08:10:28 -07:00
Mia
6c825ad198
Youtube: Properly check permissions ( #7590 )
2020-10-27 10:52:29 -04:00
Mia
bdad542eb3
Studio: Handle Net errors better ( #7586 )
2020-10-26 20:32:33 -07:00
Annika
99dce89cc6
Fix behavior of /faq with no arguments
2020-10-26 14:52:02 -07:00
Mia
f1f6f21fc1
Connections: Track current chat page ( #7522 )
2020-10-26 14:43:16 -07:00
Annika
c55c741c81
Move server/'s global variables out of index.ts ( #7585 )
2020-10-26 13:55:51 -07:00
Kris Johnson
bcff2a7902
The Studio: Allow finding recs by artist/user name ( #7578 )
2020-10-26 06:25:21 +04:00
Kris Johnson
f95bcfc428
The Studio: Fix crash
2020-10-25 20:20:26 -06:00
Quinton Lee
6c6ba3ce45
Battlesearch: fix crash in child processes
2020-10-24 17:50:21 -05:00
Guangcong Luo
e8451f8104
Clean up imports
...
A lot of our code for child processes doesn't really follow our
original standards. This refactors them back to work the way they
were intended to.
2020-10-24 22:12:35 +01:00
Kris Johnson
57e3d7c185
Add The Studio chat plugin ( #7542 )
2020-10-24 14:09:43 -07:00
Mia
fb3b6e3886
Move Battlesearch to its own file ( #7481 )
2020-10-24 10:52:52 -07:00
Annika
bd5d026c43
Fix crash in Punishments#autolock
...
We should be destroying a user's personal rooms _after_ making a modlog entry.
2020-10-23 15:25:57 -07:00
Annika
97713bad33
Validate timeout durations ( #7556 )
2020-10-22 13:47:26 -07:00
Annika
61f072f793
Moderation: Improve modlog entry for /rangeban
2020-10-22 21:01:36 +01:00
Annika
dcc9c63433
Support replay URLs in /join ( #7526 )
2020-10-22 01:57:26 -07:00
Guangcong Luo
e98024f88f
Fix bug in toDurationString precision
...
Fixes #7554
2020-10-21 19:04:06 -04:00
iscke
bbb550bd81
Use new requireRoom API in trivia and scavs ( #7553 )
2020-10-21 07:56:00 -07:00
Mia
c6aa139f62
Youtube: Persist interval time ( #7550 )
2020-10-21 05:37:02 -07:00
iscke
99450eba4e
Mafia: Use new requireRoom API ( #7552 )
2020-10-21 05:27:15 -07:00
Guangcong Luo
d6eeb197c1
Improve Chat.toDurationString
...
- Default precision is now 3.
(Instead of "3 months 25 days 17 hours 46 minutes 40 seconds", it'll
say "3 months 25 days 17 hours". You can still set the precision to
`Infinity` if you actually prefer that.)
- Now displays "forever" for Infinity or overflow durations
- No longer skips blank precision levels
(Shows "3 hours 0 minutes 10 seconds" instead of
"3 hours 10 seconds")
2020-10-21 13:05:08 +01:00
Mia
ef6cad7c9d
CommandContext: Make requireRoom support specifying a room ( #7549 )
2020-10-21 04:21:42 -07:00
Mia
7da1bdeab9
Remove /roomwhitelist from /roomhelp ( #7547 )
2020-10-21 03:15:18 -07:00
Mia
5b387aed47
Chatlog: Support viewing log stats for a room ( #7514 )
2020-10-20 05:52:45 -07:00
Mia
e7cf8a23c9
COTW: Support saving channel data of winning channels ( #7535 )
2020-10-20 05:48:24 -07:00
Annika
6c60752085
Trivia: Add option for nonrandom question order
2020-10-19 21:37:36 -07:00
Annika
20752cbb54
Trivia: Fix typo
2020-10-19 21:37:36 -07:00
ZardMX
3a4e1b1f47
Make Galar formes show up in /ds ( #7447 )
2020-10-19 03:19:04 -07:00
Guangcong Luo
9d87616176
Add more style linting rules ( #7537 )
...
* Lint arrow-body-style
* Lint prefer-object-spread
Object spread is faster _and_ more readable.
This also fixes a few unnecessary object clones.
* Enable no-parameter-properties
This isn't currently used, but this makes clear that it shouldn't be.
* Refactor more Promises to async/await
* Remove unnecessary code from getDataMoveHTML etc
* Lint prefer-string-starts-ends-with
* Stop using no-undef
According to the typescript-eslint FAQ, this is redundant with
TypeScript, and they're not wrong. This will save us from needing to
specify globals in two different places which will be nice.
2020-10-19 02:42:28 -07:00
Mia
918d436ac0
Youtube: Move video data fetching to a different function ( #7536 )
2020-10-19 02:18:44 -07:00
Annika
5118c9edfa
Moderation: Make weekbans override 2-day roombans ( #7534 )
...
For consistency with /weeklock
2020-10-19 01:07:40 -07:00
Annika
bca73b19cc
Room events: Add a command to view categories ( #7525 )
2020-10-19 01:07:05 -07:00
Distrib
36ce1dc872
Add alias for /makegroupchat and /deletegroupchat ( #7532 )
...
For https://www.smogon.com/forums/threads/make-mgc-shorthand-for-makegroupchat.3671952/
2020-10-19 01:06:20 -07:00
Annika
fe034ac087
Helptickets: Don't show battles for self-reports ( #7520 )
2020-10-19 00:57:38 -07:00
Annika
111f1383a9
Modlog: Add weekroomban as a punishment
2020-10-18 12:04:11 -07:00
Annika
c9d62d944e
Chatfilters: Fix wordfilter storage ( #7530 )
2020-10-17 23:13:28 -07:00
Mia
d020a2f921
Youtube: Support searching for videos ( #7529 )
2020-10-17 02:52:04 -07:00
Annika
7e188dee1c
Battlesearch: Fix typo
2020-10-16 14:29:53 -07:00
Annika
9aa837b9df
ProcessManager: Support timing out queries ( #7502 )
2020-10-16 02:56:02 -07:00
Annika
ab93c7a550
Punishments: Fix bug in getRoomPunishments
...
This fixes the issue with users who got roombanned on multiple IP addresses being autolocked erroneously.
2020-10-15 15:22:50 -07:00
Annika
018105bd10
Helptickets: Escape HTML in common battles
2020-10-14 08:52:52 -07:00
Guangcong Luo
0b0cf3733d
Fix toTimestamp type signature
2020-10-13 04:40:38 -07:00
Kris Johnson
52fb644d9e
Update various datasearch commands ( #7512 )
2020-10-12 15:46:19 +04:00
Annika
2f816d68fb
Fix permission checking for room deletion
2020-10-11 17:33:31 -07:00
Kris Johnson
31e2e492a1
Repeats: Don't format until repeating and give raw text in the page ( #7505 )
2020-10-11 14:35:52 -07:00
Mia
ca3e7237d7
Youtube: Support channel categories ( #7509 )
2020-10-11 13:44:42 -07:00
Kris Johnson
d9b3a510ad
TextFormatter: Support replacing \n without trusted ( #7507 )
2020-10-11 13:38:34 -07:00
Annika
ea9170b062
Helptickets: Display common battles in more ticket types ( #7510 )
2020-10-11 13:27:23 -07:00
PartMan
3c7129cb04
Remove background from /scav queue ( #7508 )
2020-10-11 17:44:05 +04:00
Guangcong Luo
1c0c77ff6b
Update to TypeScript 4.0 ( #7504 )
2020-10-10 14:43:32 -07:00
Kris Johnson
5378e39127
Repeats: Support repeating HTML ( #7495 )
2020-10-09 20:33:39 -07:00
Annika
fc0a16d3cb
Modlog: Fix regex in Modlog#getGlobalPunishments
2020-10-09 18:18:58 -07:00
Annika
7c23f786f8
Modlog viewer: Improve IP handling ( #7498 )
...
- prevents non-global roomstaff from seeing IPs in modnotes or legacy modlogs
- makes modnoted IP addresses link to whatismyipaddress.com
2020-10-09 16:04:48 -07:00
Mia
92b77cc459
User groups: Autojoin staff rooms on global promo ( #7500 )
2020-10-09 16:04:06 -07:00
Mia
e324ba260b
Moderation: Notify Staff for RO promos ( #7499 )
2020-10-09 15:59:18 -07:00
Mia
01aed88a57
RPS: Improve matchup handling ( #7497 )
2020-10-09 13:43:47 -07:00
Distrib
b433197e6a
Remove the broadcast cooldown for !showteam ( #7486 )
2020-10-09 13:25:21 -07:00
Annika
a285c2cf2c
Chat: Propagate promises for loading translations ( #7496 )
2020-10-09 13:15:50 -07:00
Mia
77079b47b8
RPS: Improve several things ( #7492 )
2020-10-09 12:38:34 -07:00
Annika
b24c44c9b6
Trivia: Support category aliases
2020-10-09 12:37:16 -07:00
Annika
a3b83ba50b
Translations: Convert JSON to TypeScript ( #7493 )
2020-10-09 12:03:44 -07:00
Guangcong Luo
bfb5c874a4
Repeat: Limit interval to 24 hours
...
(Bug found by xfix)
2020-10-09 14:58:06 -04:00
Annika
79fe2ac7df
Trivia: Fix typo
2020-10-08 22:37:45 -07:00
Annika
969cde2e35
Datasearch: Limit arguments to 300 characters
2020-10-08 19:55:14 -07:00
Annika
f7eb0c9eae
Datasearch: Use CommandContext#checkChat
2020-10-08 19:46:58 -07:00
Mia
fb23fc8733
/showteam: Properly handle nick/form names ( #7489 )
2020-10-08 13:31:29 -07:00
PartMan
d37b9486d7
Allow Pokemon names as arguments in /stone ( #7490 )
2020-10-08 19:20:27 +04:00
Kris Johnson
b107236dc5
Repeats: Refactor storing and deleting repeats, let people repeat room FAQs ( #7488 )
2020-10-07 23:42:30 -07:00
Annika
2698153e7c
Quotes: Use readmore blocks for long quotes ( #7465 )
2020-10-07 11:28:39 -07:00
Mia
ffeb0413bf
Helpfilter: Fix crash in suggestions ( #7409 )
2020-10-06 17:07:20 -07:00
Mia
fd28553e2c
Support playing Rock Paper Scissors ( #7445 )
2020-10-06 16:17:34 -07:00
Mia
896793c010
Youtube: Update channel url handling ( #7482 )
2020-10-06 16:00:16 -07:00
Mia
4279d1f3bc
Update attributions in various locations ( #7354 )
2020-10-06 15:55:26 -07:00
Mia
4620068159
Chat commands: make /addrankuhtml multiline ( #7480 )
2020-10-06 15:23:14 -07:00
Mia
a975f623a4
Chatlog: Add more opts ( #7479 )
2020-10-06 15:21:57 -07:00
Annika
2660741e9a
Fix /help for room promotion commands ( #7478 )
2020-10-06 15:18:55 -07:00
Mia
01c3e0e3ef
Add a command to view the registration time of a user ( #7366 )
2020-10-06 11:47:12 -07:00
Leonard Craft III
789d892098
Chat#checkHTML: Ban <iframe> tags ( #7476 )
2020-10-06 11:16:04 -07:00
Mia
13aa1d44cd
Battlesearch: Make turn limit optional ( #7468 )
2020-10-06 10:40:20 -07:00
Annika
df791e9f7d
Trivia: Don't allow locked/muted users to play
...
Requested by Trivia staff.
2020-10-06 10:17:35 -07:00
Mia
e2e8daa885
Thing of the Day: apply filters to noms ( #7466 )
2020-10-06 09:34:42 -07:00
Annika
216e4a7354
Add a plugin to repeat phrases in chatrooms ( #7338 )
2020-10-05 14:25:18 -07:00
asgdf
8eb9a40263
Add more letter substitutions to filter ( #7470 )
2020-10-05 14:23:39 -07:00
PartMan
fa5456deca
Make !groups case-insensitive ( #7475 )
2020-10-05 14:22:20 -07:00
Mia
fe5ef07f0c
Chatlog: Notify the user that a search is running ( #7474 )
2020-10-05 13:55:28 -07:00
Annika
7eabc7635c
Remove trailing whitespace
...
I thought I had set up my editor to do this but apparently not.... my bad.
2020-10-05 09:20:22 -07:00
Annika
dc77ad160a
Helptickets: Display common battles more cleanly
2020-10-05 09:06:52 -07:00
Quinton Lee
0094f34e38
Chat: fix CommandContext#filter in PMs
...
The ChatFilter type already specifies room as `Room | null` so this check should not be needed.
2020-10-04 13:22:57 -05:00
Guangcong Luo
177b2c4af2
Fix tour autostart
...
Fixes #7469
2020-10-03 21:49:38 -07:00
Annika
3fcb8f4e00
Use attributes of CommandContext in Chat.filter ( #7461 )
2020-10-03 21:30:20 -07:00
Annika
f4dee3c7f9
Modlog: Fix bug with punishments with no reasons
...
Fixes https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/page-32#post-8613159 .
2020-10-03 15:25:33 -07:00
Mia
4d8580df97
Rooms: Refactor Modlog import ( #7463 )
2020-10-03 09:56:40 -07:00
aQrator
d0b19629dd
Scavengers: Improve /edithunt ( #7456 )
...
Two minor changes for the Scavengers plugin:
- Change the ``/`` for alts to a ``;`` to allow easier copying
- Change the edithunt method to allow commas in the answers
2020-10-03 09:55:49 -07:00
Mia
aba5dd1119
/showteam: Support nicknames ( #7464 )
2020-10-03 08:25:14 -07:00
Annika
aeaa05bd5a
Modlog: Minor fixes
...
yes another modlog commit from me!
this time, it's making sure that note searches based on user IDs actually get toID() called on them, and fixing some HTML escaping issues
2020-10-02 20:59:42 -07:00
Mia
ab16b48d48
Chatlog: Update permission checks ( #7459 )
2020-10-02 19:26:29 -07:00
Annika
d807e00e40
Helptickets: Display shared battles in staffintro ( #7460 )
2020-10-02 19:24:29 -07:00
Annika
3db02d9b7d
Trivia: Restrict random mode selection
...
Random mode should not select First mode if it was played in the past 10 Trivia games
2020-10-02 16:04:41 -07:00
Annika
0dd6e1c0d4
Modlog viewer: Fix formatting of search explanation
2020-10-02 10:00:50 -07:00
Annika
53cebdc09d
Daily spotlights: Add alias for /viewspotlights ( #7453 )
2020-10-01 15:46:24 -07:00
Guangcong Luo
65db20711c
Fix bug in /updateserver
2020-10-01 11:58:14 -07:00
Jeremy Tan Jie Rui
6e956aee51
Add documentation on maxgen parameter to /ds ( #7451 )
2020-10-01 09:40:17 -07:00
Mia
3e92bcd2cc
Quotes: Remove the broadcast cooldown for /randquote ( #7450 )
2020-10-01 09:39:54 -07:00
Annika
0cf43e7461
Modlog: Default to searching all fields ( #7449 )
2020-10-01 09:36:36 -07:00
Guangcong Luo
523c1a335d
Introduce Chat.oldPlugins ( #7434 )
...
This provides a new way to persist chat plugin data across hotpatches:
`Chat.oldPlugins`.
In a plugin, you can now do:
```
export const cache = Chat.oldPlugins.pluginname?.cache || {};
```
to create a cache that will persist across hotpatches.
2020-09-30 19:45:54 -07:00
Annika
0877f0ae1e
Modlog: Fix entries with an IP address and no user ( #7446 )
2020-09-30 17:55:41 -07: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
Annika
98b9bd69b1
Fix more modlog attributions
2020-09-29 17:39:28 -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
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
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
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
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
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
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
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
Mia
b9df40c5af
Auth: Fix whitelist/prizewinner giving trusted status ( #7418 )
2020-09-25 08:58:31 -07:00
Marcell
d2bb6a8089
Make Prize Winner bold ( #7416 )
...
I removed the "/" from the first tag, so it will be displayed as bold.
2020-09-25 00:28:08 +04:00
Annika
2e6ed8a50f
Helptickets: Fix double notification ( #7415 )
...
We should only be sending notifications through Staff room rather than the page.
2020-09-25 00:17:14 +04:00
Annika
1f239664c7
IPTools: Check proxy IPs before other host types ( #7414 )
2020-09-24 09:30:47 -07:00
Annika
eb2261b846
Helptickets: Close a user's ticket on global ban ( #7411 )
2020-09-22 21:00:38 -07:00
Kris Johnson
5a8ded0568
Room FAQs: Convert the rfaq list to a page ( #7394 )
2020-09-22 19:30:05 -07:00
Mia
7a89492947
Chatlog: Use ProcessManager for searches ( #7393 )
2020-09-22 18:23:01 -07:00
Mia
8bbec3db3a
Add prize winner to /groups ( #7407 )
2020-09-22 18:18:52 -07:00
Annika
db5d04c2c9
Make modnotes global in rooms with shared modlogs ( #7401 )
...
This mainly applies to modnotes in help tickets and battles, as well as global staff modnoting in groupchats (in case of misbehavior in a groupchat).
2020-09-20 20:15:42 -07:00
Annika
1e20f6a96f
Trivia: Add leaderboard management commands ( #7402 )
2020-09-20 16:33:03 -07:00
Annika
4a61ffd5ac
Trivia: Use Room#subGame for Mastermind ( #7371 )
2020-09-19 18:32:44 -07:00
urkerab
fbef450802
Fix missing variable renames after PR #6670 ( #7400 )
2020-09-19 17:59:40 -07:00
Mia
2db1922e87
Battlesearch: Improve phrasing and UI ( #7396 )
2020-09-19 16:22:15 -07:00
Mia
fdd264d075
Quotes: Properly check if a user can view the room ( #7397 )
2020-09-19 16:03:00 -07:00
Guangcong Luo
360668b00e
Revert "Fix renaming battle rooms ( #7326 )"
...
(It had a bug that made private battles unplayable.)
This reverts commit 930c00410b .
2020-09-19 05:36:34 -04:00
Annika
930c00410b
Fix renaming battle rooms ( #7326 )
2020-09-19 02:05:27 -07:00
Mia
ae7a46dd37
Chat: Move forcerename tracking to Monitor and Punishments ( #7381 )
2020-09-19 02:04:49 -07:00
Guangcong Luo
46c470671a
Unify /guess ( #7387 )
2020-09-19 01:24:52 -07:00
Annika
480079e790
Punishmentfilter: Don't activate for permalocks ( #7389 )
2020-09-19 01:23:21 -07:00
Annika
62a2eda1a1
RoomGame: Support room.subGame ( #7380 )
2020-09-19 00:40:24 -07:00
Annika
59ba8aa876
Chat filters: Support custom redtext ( #7392 )
2020-09-18 20:38:53 -07:00
Annika
ab7daeecf8
Mention PHP in /opensource ( #7391 )
2020-09-18 20:37:57 -07:00
Mia
9a555a6ee9
Add weekban to /punishments ( #7388 )
2020-09-18 16:19:43 -07:00
Annika
6d8d0bd93a
Trivia: Use Chat.ErrorMessage more ( #7384 )
2020-09-18 16:19:26 -07:00
Mia
6f28e459f3
Battlesearch: Support searching for multiple users and searching months ( #7382 )
2020-09-18 07:44:33 -07:00
Mia
6255927779
Add a command to highlight users in bot html pages ( #7304 )
2020-09-18 07:38:44 -07:00
Quinton Lee
bf400c4ef1
Restore global bot permissions for /filters list ( #7385 )
2020-09-18 05:08:51 -07:00
Annika
66ba5a25b2
Remove Idle status on logging in ( #7383 )
2020-09-18 03:58:23 -07:00
Kris Johnson
d7adf0e17c
Quotes: Make deleting quotes log properly
2020-09-17 20:36:51 -06:00
Annika
c143c879e1
Fix bugs when promoting a user with authed alts
2020-09-17 17:20:47 -07:00
Annika
33e59f16af
Punishments: Fix modlog entries for autolocks
2020-09-17 10:40:44 -07:00
Mia
e80f71f648
Chat: Fix Context.checkChat ( #7327 )
2020-09-16 18:41:30 -07:00
Annika
c7934184cf
Fix hardcode in /modjoin sync ( #7377 )
2020-09-16 18:40:14 -07:00
Annika
357131ec68
Escape regexes in the filter display page
...
Lookbehind regexes cause problems....
2020-09-16 15:36:08 -07:00
Kris Johnson
dd494bb973
Tournaments: Modernize permission checking ( #7375 )
2020-09-16 03:40:15 -07:00
Mia
abad806760
Improve the /faq command ( #7369 )
2020-09-16 01:25:34 -07:00
Annika
ba4bb2f120
Helptickets: Display user language and remove prefix ( #7373 )
2020-09-16 01:21:07 -07:00
Annika
12c7a08424
Improve group symbol validation in /permissions
...
This fixes the issues where you can set permissions to a rank that doesn't exist
2020-09-16 00:20:28 -07:00
Annika
38d62612f4
Move checkChat() in /invite ( #7374 )
2020-09-15 23:31:03 -07:00
Annika
88558b6ac6
Chat: Always make help commands broadcastable
2020-09-15 16:37:33 -07:00
Kris Johnson
df9a4488fa
Quotes: Quality-of-life changes and bug fixes ( #7361 )
2020-09-15 03:32:08 -07:00
Kris Johnson
bbccd2e2f4
Tournaments: Fix permissions ( #7370 )
2020-09-15 03:27:26 -07:00
Annika
466dfcc5ce
Trivia: Fix start officials
2020-09-14 18:06:57 -07:00
Mia
041d8fb0ed
Helptickets: Refactor bans to use the punishment interface ( #7365 )
2020-09-14 17:02:57 -07:00
Annika
f248b838b6
Allow groupchat hosts to rename their groupchats ( #7359 )
2020-09-14 16:34:41 -07:00
Leonard Craft III
302d6ff6fb
Add hidestats arg to showteam and improve output ( #7357 )
2020-09-14 16:33:34 -07:00
Annika
52c5df12d5
Fix crash in /invite ( #7364 )
2020-09-14 16:28:22 -07:00
Mia
96b4c4c841
Searchlogs: Don't require a room ( #7367 )
2020-09-14 16:27:26 -07:00
Annika
422649dca7
Trivia: Add a new game called Mastermind ( #7368 )
2020-09-14 16:03:50 -07:00
Mia
6aa55bd6b1
Tournaments: Refactor commands ( #7229 )
2020-09-14 02:09:30 -07:00
Guangcong Luo
db449796c9
Document collapseLineBreaksHTML
2020-09-14 01:43:37 -07:00
Annika
87ea9bb431
Add a filter to run code after global punishments ( #7362 )
2020-09-12 22:33:56 -07:00
Mia
8be5ccb235
Quotes: Fix bug in attribution ( #7360 )
2020-09-12 19:45:56 -07:00
whales
3cae09feab
Mafia: Fix forcehost
2020-09-13 12:14:49 +09:30
Annika
e47abc6d57
Modlog: Fix crash in renaming temporary rooms
2020-09-12 17:11:50 -07:00
Kris Johnson
b7b609a205
Display BST properly in /crossevo and /showevo
2020-09-11 18:53:08 -06:00