Annika
3a99efbb0e
Add a /randombattlenodmax command
2021-03-10 17:48:05 -08:00
Annika
c079677e15
Fix /trivia migrate
2021-03-10 09:08:40 -08:00
Mia
83b82c9f0e
Hosts: Properly validate hosts in /nomarkshared add
2021-03-09 10:06:13 -06:00
Annika
88fa8e2971
Remove /randset
...
This command isn't seen as useful by the randbats and is buggy
2021-03-04 15:44:00 -08:00
Mia
daf71a699e
/randset: Handle random-teams not existing
2021-03-03 19:48:04 -06:00
Annika
75ed11e2aa
Trivia: Fix /trivia lastofficialscore
2021-03-03 15:43:07 -08:00
Annika
c58d9ae959
Trivia: Use an Object, not a Map, for old scores
...
Maps are serialized to JSON as Objects, so this caused the type signatures to be incorrect when data was loaded from JSON.
2021-03-03 15:36:47 -08:00
Mia
9402a8814c
Fix crash in /randset ( #8079 )
2021-03-03 13:52:55 -08:00
Mia
736e38e4af
ProcessManager: Handle Monitor#slow in subprocesses ( #7990 )
2021-03-03 12:39:53 -08:00
Kris Johnson
987c8d95d4
Datasearch: Fix crash
2021-03-03 12:44:30 -07:00
cheesetheorange
936b7bf15c
Hangman: Correctly check guesses with numeric characters ( #8056 )
2021-03-01 13:01:16 -08:00
pyuk-bot
e3d13f821d
Dexsearch: use optional chaining in getMod() ( #8091 )
2021-03-01 12:09:57 -07:00
Mia
5d5b831275
Datasearch: Fix crash in PM
2021-03-01 12:46:13 -06:00
Kris Johnson
50fef2bc68
Fix crash in /ds
2021-03-01 10:32:08 -07:00
PartMan
fe1d15b34a
Scavengers: Display host's username when hunt ends ( #8090 )
2021-03-01 11:24:12 +01:00
Mia
5dd0da602d
Help tickets: Refresh ticket list in 'more tickets' button on click ( #8080 )
2021-02-28 18:41:21 -08:00
Kris Johnson
aeecf8d24c
Dexsearch: Add support for searching by mods ( #8064 )
2021-02-28 14:37:00 -08:00
ayiadvance
23352312de
Change lynch to vote for public messages and add a vote alternative to lynch commands. ( #8081 )
2021-02-28 08:02:54 -05:00
Mia
6cccd0935a
Revert /show and /requestshow to use <youtube> again
2021-02-27 22:33:13 -06:00
Mia
1c75a2a450
Polls: Fix /poll timer display
2021-02-26 17:56:22 -06:00
Annika
fa889d5280
Add a /randset command
2021-02-26 14:34:04 -08:00
Mia
d50f5823ae
Searchlogs: Properly handle deleted rooms
2021-02-26 13:52:25 -06:00
Zorquax
f47855c863
Mafia: Add /unwin command ( #7955 )
2021-02-25 15:40:59 -08:00
Christopher Monsanto
ff93e9865f
thing-of-the-day: Don't display nomination list in A/M after nom
2021-02-25 09:22:49 -05:00
Annika
11b7245c99
Room FAQs: Don't allow empty FAQ entries
2021-02-22 14:56:50 -08:00
Annika
c2e97aaaed
Use optional chaining in more places ( #8063 )
2021-02-22 11:42:05 -08:00
Kris Johnson
80ad124388
Mafia: Fix IDEA picking
2021-02-21 15:11:02 -07:00
Mia
312d410b69
Mafia: Fix /mafia unlynch
2021-02-19 08:21:30 -06:00
Mia
66f717424a
Mafia: Fix /ideapick
2021-02-18 09:28:37 -06:00
Mia
9b33890cce
Mafia: Fix /mafia sub
2021-02-17 15:30:15 -06:00
Annika
62056a33a9
Mafia: Fix bugs caused by not using /msgroom
2021-02-16 21:19:51 -08:00
Kris Johnson
82b20aaf8e
Use /msgroom in more places ( #8042 )
2021-02-16 20:10:05 -08:00
Annika
51883cc0bb
Trivia: Don't reset scores twice
2021-02-16 08:57:08 -08:00
Annika
39439385df
Trivia: Attempt to fix crash
...
I don't actually know what causes the crash on line 825, but my best guess is that one of the winners didn't have points, and thus got skipped in the `for` loop that initializes leaderboard entries.
2021-02-16 08:54:38 -08:00
Kris Johnson
4d9b993105
Suspect Tests: Add a whitelist ( #8020 )
2021-02-15 18:21:45 -08:00
Kris Johnson
3fbb9405dc
Usersearch: Make page forcerenames log to staff ( #8035 )
2021-02-15 16:11:25 -05:00
Guangcong Luo
61ea2dd916
Implement Utils.escapeHTMLForceWrap
...
Combining escapeHTML and forceWrap allows us to use <wbr /> instead
of U+200B, fixing a copy/paste bug.
2021-02-15 06:09:58 -05:00
Guangcong Luo
0dc3070229
Fix /hangman terms
2021-02-15 06:09:58 -05:00
Distrib
640eed65d1
Hangman: Improve hangman terms ( #8027 )
2021-02-15 02:47:14 -08:00
Distrib
313a51652a
UNO: Add /uno cards command ( #8001 )
2021-02-15 01:56:57 -08:00
Mia
4f0ff8cc96
Youtube: Support Twitch streams/channels ( #8005 )
2021-02-15 01:54:49 -08:00
Annika
8f5c75cc76
Fix typo
2021-02-14 11:45:42 -08:00
Annika
2b2f5f37ba
Hangman: Fix crash when a room has no saved words
2021-02-14 11:45:18 -08:00
Volco
99cb8ea055
Fix helptickets game.ticket setting to undefined ( #8000 )
2021-02-13 23:18:40 -05:00
Kris Johnson
0583a61e4c
Add a chat page for /usersearch ( #8022 )
2021-02-13 18:01:25 -08:00
Kris Johnson
b8cbee3944
Update OMotM/LCotM aliases ( #8025 )
2021-02-12 19:06:11 -07:00
Annika
1c8b5f73c1
Hangman: Fix bug with whitespace
...
Whitespace was tripping the chat filter for hangmans.
2021-02-11 15:49:20 -08:00
Kris Johnson
f347f4d4f2
Room FAQs: Fix grammar
2021-02-11 14:31:58 -07:00
zgeorgecsat
d692f2d0e2
Fix /mafia unhostban ( #8012 )
2021-02-10 21:22:58 -08:00
Distrib
6aa8e268ce
Uno: Fix crash ( #8016 )
2021-02-09 17:31:06 -08:00
Annika
60e063ff01
Trivia: Add /trivia lastofficialscore
...
Requested by @TheMezStrikes
2021-02-09 10:41:00 -08:00
Annika
23f0c42ca4
Trivia: Always display question numbers
2021-02-08 22:26:06 -08:00
Annika
963a269912
Trivia: Properly display question-based scorecaps
2021-02-08 17:59:40 -08:00
Annika
cd2e7325e8
Trivia: Fix confirmation for /trivia migrate
2021-02-08 16:59:58 -08:00
Annika
a14ea20be4
Trivia: Add a /trivia migrate command
2021-02-07 21:21:59 -08:00
Annika
3e4349d41b
Trivia: Fix prizes for question-capped games
2021-02-07 21:01:16 -08:00
Annika
8bf6b92b99
Trivia: Support capping games by questions asked
2021-02-07 21:00:04 -08:00
Annika
ff55a87484
Trivia: Add a /trivia moveusedevent command
2021-02-07 21:00:04 -08:00
Distrib
27f103fd67
Announcements: Don't re-display on hotpatch ( #7999 )
2021-02-07 04:43:38 +04:00
Distrib
4944b111eb
UNO: Fix double turn after auto-disqualification ( #7996 )
2021-02-05 22:47:38 +04:00
DayanYT
b996f7283e
Mafia: Fix typo ( #7995 )
2021-02-05 09:58:04 -05:00
Annika
204bfad9b1
Trivia: Add "Event" and "Event (used)" categories
...
These categories are special–questions in the Event category move to Event (used) after they're asked in a game. Requested by QW mods and ROs
2021-02-04 15:54:18 -08:00
Annika
b46e90db73
Trivia: Use object spread for ALL_CATEGORIES
2021-02-04 15:51:41 -08:00
Annika
2dd9d252d5
Trivia: Fix crash in /trivia qs
...
Previously, /trivia qs crashed if no questions had ever been added to the category.
2021-02-04 15:49:44 -08:00
Instruct
7989e4df4f
/battlefactory: Fix searching for nonexistent tiers ( #7989 )
...
* BF cmd: Fix crash searching for a valid tier not included in a specific gen
* Update server/chat-plugins/random-battles.ts
* Update server/chat-plugins/random-battles.ts
* Update server/chat-plugins/random-battles.ts
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-02-02 21:56:08 -07:00
Distrib
cf9f7a5a19
UNO: Fix turn order after a disqualification ( #7944 )
2021-02-02 12:03:46 -08:00
aQrator
271bed474f
Update scavengers.ts ( #7986 )
...
Fix /scavhelp to say /scavhelp staff instead of /roomhelp staff
2021-02-03 00:02:29 +04:00
Mia
b97ba59149
NN filters: Parse /me properly ( #7987 )
2021-02-03 00:02:00 +04:00
Mia
13a2a802a1
YouTube: Add a command to disable the interval ( #7984 )
2021-02-02 11:11:54 -08:00
aQrator
77b2ef6c48
Scavengers: Update /scavhelp ( #7985 )
2021-02-02 11:11:37 -08:00
Volco
88d9ec5e91
Fix crash that prevents the server from booting ( #7983 )
2021-02-02 11:05:14 -08:00
Mia
4c60f05994
NN Filters: Add a command to train on logs from a room ( #7981 )
2021-02-01 17:30:50 -08:00
Mia
98ea14dce3
Spotlights: Store image data ( #7978 )
2021-02-01 16:37:17 -08:00
Guangcong Luo
ec0b96e93d
Fix delete button on Poll queue page
...
Fixes #7832
2021-02-01 16:13:07 -08:00
Mia
207d234260
Youtube: Notify room of starting groupwatches ( #7980 )
2021-02-01 12:07:40 -08:00
Guangcong Luo
93e921360e
Better infer bases in /math
2021-01-31 18:10:37 -08:00
DayanYT
fd0e01ad6c
Calculator: Support h, o and b suffixes for base 16, 8 and 2 numbers ( #7949 )
2021-01-31 18:10:16 -08:00
Mia
76c10841ea
Lib: Add an index file for all exports ( #7972 )
2021-01-31 18:00:19 -08:00
Mia
2bdc77cc3d
Net filters: Fix error handling and make improvements ( #7974 )
2021-01-31 11:26:16 -08:00
Mia
a8edba9bd3
Minor activities: Don't re-display on hotpatch ( #7970 )
2021-01-31 00:36:07 -08:00
Mia
f6491e61ea
Youtube: Add a command to list groupwatches ( #7964 )
2021-01-30 22:57:02 -08:00
Guangcong Luo
747974db34
Support diacriticals in Hangman
...
We now support the entire gamut of Unicode. You can still only guess the
26 English letters, though.
2021-01-30 23:02:56 -05:00
Mia
335eafba95
Add machine-learning based monitors ( #7937 )
2021-01-30 17:40:01 -08:00
Mia
f4d78b8395
Fix build
2021-01-30 15:08:50 -06:00
Guangcong Luo
da30a71706
Revert "Remove User#inRooms and User#games ( #7815 )"
...
This reverts commit 5c9c84c415 .
This also reverts commit 1fc92ef977 .
2021-01-30 15:55:55 -05:00
Mia
0ad5c41896
Chatlog: Restrict access to slowlog roomlogs
2021-01-30 14:40:15 -06:00
Guangcong Luo
f4abf52f61
Fix QueryProcessManager type signatures
2021-01-30 11:35:35 -08:00
Kris Johnson
081326b69c
Refactor minor activities ( #7766 )
2021-01-28 12:12:54 -08:00
Mia
a63fb0074a
CommandContext: Add a method for refreshing html pages ( #7666 )
2021-01-28 12:10:50 -08:00
Mia
1654307731
Helptickets: Fix bugs with unbanning ( #7883 )
2021-01-28 11:43:44 -08:00
Mia
184e867761
Hangman: Support saving hangman entries ( #7630 )
2021-01-28 11:24:46 -08:00
Mia
5c9c84c415
Remove User#inRooms and User#games ( #7815 )
2021-01-28 10:41:35 -08:00
Distrib
0ab6bcb80a
Daily spotlight: Display raw text in /daily ( #7947 )
2021-01-25 08:59:39 -08:00
Distrib
fecfc9f846
Room FAQs: Display raw text in /rfaq ( #7928 )
2021-01-23 04:37:44 -08:00
Distrib
c30d8cd125
Room Events: Imrove raw text in /events view ( #7933 )
2021-01-23 04:37:03 -08:00
Instruct
0d1c9fe098
SSB4: Bugfixes and Balance Patches ( #7889 )
2021-01-22 14:56:26 +04:00
Annika
e6e3421611
Add subcat1 as an alias for subcat
...
Requested by aegii
2021-01-21 21:47:28 -08:00
zgeorgecsat
c0df565f3c
Mafia: Implement gamebans, various updates ( #7867 )
...
* Plurality shift is now shown upon hammer.
* Removes night responses drop down option.
* Adds error reply if user tries to use an argument with /mafia action.
* Lists cohosts on the mafia page.
* Playerlists are alphabetized.
* Declares when closed setup is turned on.
* /mafia kill kills multiple users separated by commas.
* Changes for checks
* Add gamebans/refactor hostbans to use Punishments
* Small fixes
* Change for checks
* Suggestions
* Updates for checks
* Make takeidles default and change game name to Mafia
* Update mafia.ts
* Use this.room
2021-01-22 00:52:28 +10:30
SirKira(!Uzumaki)
071cf40d30
Fix double box in YouTube channel display ( #7861 )
2021-01-19 09:03:07 -08:00
Adam Tran
14744879c8
Fix excluding variables in /ms ( #7859 )
2021-01-18 11:42:58 -06:00
Mia
996f8c766e
Punishments: Support ranges in /nomarkshared ( #7913 )
2021-01-15 17:38:13 -08:00
Leonard Craft III
40731a74e8
Improve help ticket roomintro CSS ( #7915 )
2021-01-14 20:21:47 +04:00
Guangcong Luo
1558811b03
Refactor Polls for Chat.ErrorMessage
...
Also adds an error message for "option already selected".
2021-01-12 19:58:34 -08:00
Annika
8c65fada6d
Trivia: Clarify error message
2021-01-12 16:36:42 -08:00
Guangcong Luo
8fcdf1a895
Fix people voting >1 time for one poll option
...
Fixes #7906
Fixes https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/page-40#post-8685683
2021-01-11 16:23:12 -08:00
Distrib
aa501ecaa7
thing-of-the-day: Fix text bug ( #7907 )
...
https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/page-44#post-8710248
2021-01-11 15:48:16 -08:00
Mia
121e93524c
Add a command for searching groupchats ( #7900 )
...
* Add a command for searching groupchats
* OK
2021-01-11 01:27:59 -08:00
Distrib
045a15f0bd
Poll: Fix viewqueue ( #7902 )
2021-01-10 13:49:18 -08:00
The Immortal
3ae56399bd
Label Pokemon banned from LC as NFE
2021-01-11 00:29:18 +04:00
Mia
6ae859326d
Helptickets: Update the #hostfilter lock page description
2021-01-09 20:29:28 -06:00
Mia
ca94dea20f
FS: Fix hotpatching and add more throttling ( #7878 )
...
- `writeUpdate` state is now stored in a global variable, so hotpatching doesn't crash it
- throttling now writes on the tail (so two throttled `writeUpdate` calls will write one update, not two)
- room settings, punishments, and helptickets are now throttled
2021-01-09 15:49:30 -08:00
Mia
d5e7f3f778
Modlog: Add more shorthand commands ( #7896 )
2021-01-09 01:00:05 -08:00
Distrib
270a55ef0b
Improve /help events ( #7895 )
...
Pr for imrove help events, same https://github.com/smogon/pokemon-showdown/pull/7828
2021-01-08 19:18:21 -08:00
Annika
2a54d9d82e
Chat monitor: Add ƞ to evasion regexes
2021-01-07 12:32:59 -08:00
Guangcong Luo
6b3a3070c9
Refactor team validator for readability
...
`checkLearnset` has been renamed `checkCanLearn`.
`reconcileLearnset` has been replaced with `validateMoves`, which
bundles the actual `checkCanLearn` calls with the old
`reconcileLearnset`, making for a better name.
2021-01-03 23:26:20 -08:00
zgeorgecsat
6c5a74c949
Mafia: Refactor for errorReply/requireGame ( #7862 )
...
* Changed to errorReply and requireGame whenever applicable/
* Use Chat.ErrorMessage in canJoin
2021-01-03 11:44:43 -08:00
PartMan
6597ef0f15
Add multi-hit as a parameter to /ms ( #7855 )
...
* Add multi-hit as a parameter to /ms
* Revert /help ds, add multihit to /help ms, fix TS
Code linted, let's go
'Tis coding at midnight
Save what had been tossed...
Bring back the older line...
The older line.
* ;-;
1465 passing (25s)
53 pending
> pokemon-showdown@0.11.4 posttest /home/partman/Documents/Code/pokemon-showdown
> npm run tsc
> pokemon-showdown@0.11.4 tsc /home/partman/Documents/Code/pokemon-showdown
> tsc
No idea why this wasn't caught.
* Fingers crossed
2021-01-03 11:42:27 -08:00
Guangcong Luo
ad656f67e4
Keep track of why moves can't be learned
...
The validator will now always know and be able to report exactly why
a move can't be learned, instead of sometimes not being able to figure
it out.
2021-01-03 09:53:04 -08:00
Plato
0731a47deb
Repeats: Fix private mod actions ( #7865 )
2021-01-01 14:07:16 -08:00
Kris Johnson
8b78eeb011
Fix HTML polls
2020-12-31 14:16:20 -07:00
Guangcong Luo
c44af3286d
Implement Utils.forceWrap
...
I wrote a `forceWrap` method to support break-word wrapping in table
cells for scavengers, but apparently code blocks need it too, so I'm
moving it to Utils.
Fixes #7854
2020-12-30 17:41:41 -08:00
Instruct
e56d470671
Dexsearch: Add Strength Sap & Jungle Healing to list of recovery moves ( #7851 )
2020-12-30 02:29:59 +04:00
AeonicX7
2edfe301fd
Fix typo in /help battlesearch ( #7852 )
2020-12-29 14:16:32 -08:00
Kris Johnson
60cf560f9f
Repeats: Simplify code and fix bug ( #7849 )
...
* Repeats: Simplify display checks and fix bug
* Oops
* b
2020-12-29 03:57:18 -08:00
Mia
05295e356a
Modify uses of <youtube> tag to comply with API ToS ( #7848 )
2020-12-28 22:09:32 -08:00
Annika
3c0b07323d
Repeats: Use trusted text formatting
...
Requested by Kris; follows the precedent of roomfaqs
2020-12-28 21:56:01 -08:00
Guangcong Luo
99f5234e75
Fix a bunch of bugs in Polls/Announcements
...
- Polls were always starting as quizzes even when they weren't
- Hotpatching chat would reset poll/announcement timers
- A lot of bugs relating to minute/millisecond confusion in timer code
- Poll answers were called `questions` in the source code for some
reason; they've been renamed to consistently be `answer`.
- Refactor out an extremely unnecessary manual iteration
2020-12-28 08:50:34 -05:00
Annika
6d92ac8547
Repeats: Support non-time-based repeats ( #7518 )
2020-12-28 03:39:52 -08:00
Mia
2cca8bd48e
Support persisting polls and announcements ( #7477 )
2020-12-28 01:02:13 -08:00
Adam Tran
6702decd95
Add Pivot moves as a /ms category ( #7822 )
...
* draft test
* Move search for pivot moves
2020-12-26 21:57:03 -08:00
Instruct
5b441c2013
Super Staff Bros 4 ( #7793 )
...
Collaborative Project lead by @xInstruct with many contributors.
See the Special Thanks section of https://www.smogon.com/articles/super-staff-bros-4
2020-12-24 11:21:02 -05:00
Mia
981019e148
YouTube: Fix crash in interval ( #7831 )
2020-12-23 20:35:09 -08:00
Distrib
e8d0a8ec86
Improve /help daily ( #7828 )
2020-12-23 00:02:30 -08:00
Distrib
236aa0a1df
Hosts: Improve /help ipranges
2020-12-22 15:13:36 -08:00
Guangcong Luo
c13a9c84fb
Improve /help poll
2020-12-21 21:26:51 -08:00
Distrib
393abfb056
Polls: Redesign help and add missing command ( #7803 )
2020-12-21 13:55:47 -08:00
Mia
e601a5eb1f
Suspect tests: Move functionality out of sim/ ( #7769 )
2020-12-21 13:32:19 +04:00
Mia
c12108fa72
Fix spinlock in /nomarkshared view ( #7821 )
2020-12-18 13:16:02 -08:00
Annika
42bd7cb8f5
Trivia: Remove deprecated sliceCategory function
2020-12-18 12:56:24 -08:00
fart
4e5e8c084b
Autoresponder: Fix bug with Refresh button ( #7789 )
...
* Fix Autoresponder Refresh button bug
Currently if you go into ``/autoresponder view`` and choose to view autoresponder Stats, it opens a menu where no date is specified and you can choose a date from there. If, however, you press the Refresh button (where no date is specified), it opens a new page called "view-autoresponder-room-stats-" (note the extra hyphen at the end). This is because the "refresh" function is called (on line 458) with [date], which would equal [""]. This is a truthy value, unlike [] and unlike "". This patch changes the conditional statement to look at the first item in the array's truthfulness - it is either an empty string (falsey) or a non-empty string (truthy) - instead of always being truthy.
* Fix failing test
* Fix failing test
Sorry if this isn't ideal, it's certainly not as elegant as it originally was.
* Update responder.ts
* Update responder.ts
* Update responder.ts
2020-12-16 12:33:38 -08:00
Annika
412ca7d5bb
Mastermind: Fix timeout properly
2020-12-15 16:10:46 -08:00
Annika
290d520ea7
Mastermind: Highlight users on round start
2020-12-15 16:10:46 -08:00
Annika
e78fff3d47
Mastermind: Add a command to kick users
2020-12-15 16:10:46 -08:00
Annika
20bda5e548
Mastermind: Take all tied players to finals
2020-12-15 16:10:46 -08:00
Annika
721a48ea38
Trivia: Number submissions from 1
2020-12-15 12:00:10 -08:00
zgeorgecsat
5d4529ebcf
Mafia: Support submitting night actions through script ( #7749 )
...
* Allows players to submit idles through script
* Added suggestions
Co-authored-by: Student <Student@MacBook-Air-5.hsd1.il.comcast.net>
2020-12-15 14:45:30 +10:30
Annika
4c1f8bb491
Trivia: Fix bugs with adding questions
2020-12-14 18:48:35 -08:00
Annika
04418fee99
Trivia: Fix bug with Mastermind
2020-12-14 16:20:51 -08:00
Annika
dab1008448
Trivia: Fix bug in /trivia removeleaderboardentry
2020-12-14 15:07:50 -08:00
Annika
7f3afbc74f
Mastermind: Reduce intermission to 0.5 seconds
...
As per the original doc from Aegii (https://pastebin.pl/view/cf5113e5 ), which I misunderstood originally.
2020-12-14 14:46:40 -08:00
Annika
f2bfc82ca1
Chat monitor: Improve the handling of usernames ( #7786 )
...
* Chat monitor: Improve the handling of usernames
This PR ignores word boundaries in evasion regexes when filtering usernames, preventing the use of usernames with evasions of slurs in them.
* properly fix merge conflicts
2020-12-14 12:55:11 -08:00
Mia
755f930957
Add a page/command for viewing log access logs ( #7794 )
2020-12-14 01:38:56 -08:00
Annika
d742fbf1e4
Trivia: Use an Object for questions instead of a sorted array ( #7800 )
2020-12-13 23:17:10 -08:00
Mia
94fe9d838b
Fix userid search regexes for battlesearch/chatlog ( #7801 )
2020-12-13 23:12:14 -08:00
Annika
b7c3e6cff2
Chat monitor: Add Unicode support to regexes
...
This should fix the issues with the filter thinking that `🐺 ℕ𝕚𝕟𝕖𝕥𝕒𝕝𝕖𝕤-𝔸𝕝𝕠𝕝𝕒🐺 ` was the T-slur.
2020-12-13 14:51:46 -08:00
Mia
14218b133d
Youtube: Fix crash in /yt endwatch
2020-12-13 20:12:20 +00:00
Mia
ceb7bfab8b
Battlelog: Run search in PM ( #7796 )
2020-12-12 13:44:54 -08:00
Annika
37daf55014
Chatlog: Increase PM timeout to 1 hour
2020-12-11 20:47:09 -08:00
Mia
f9c4f8d4bc
Chatlog: Refactor FS/ripgrep handling and support battle logs ( #7775 )
2020-12-11 16:51:42 -08:00
Mia
3fb5f20321
Youtube: Track current video time in groupwatch ( #7767 )
2020-12-11 11:39:23 +04:00
Annika
ab9cb3a825
Battlesearch: Increase PM timeout to 3 hours
2020-12-09 09:14:21 -08:00
Annika
43b5070724
Trivia: Fix bug
...
THe order of the object keys matters, apparently. Why?
2020-12-08 18:10:59 -08:00
Annika
e0892ba88f
Trivia: Support storing up to 5 subcats
2020-12-08 17:47:59 -08:00
Annika
c87a4669c5
Properly prevent reuse of forcerenamed names
...
af36329377 identified the bug, but moved it into the wrong filter. third time's the charm?
2020-12-02 23:26:56 -08:00
Annika
59a33fc2d0
Chatmonitor: Improve evasion handling in nicknames
...
Don't autolock users who use the slur verbatim without attempting to evade
2020-12-01 23:08:40 -08:00
Guangcong Luo
cc1acbb934
Fix build error from merging conflicting PRs
2020-12-01 15:16:02 +00:00
Mia
0afd5cb54b
Punishments: Show users a warn message on login for offline warns ( #7741 )
2020-12-01 07:02:54 -08:00
Mia
e942ed1f56
Youtube: Add support for watching videos as a group ( #7732 )
2020-12-01 06:53:59 -08:00
Kris Johnson
5a573525ad
Translations: Fix strings for the repeats plugin ( #7746 )
2020-12-01 06:47:13 -08:00
Kris Johnson
fba68d5be6
Reformat old instances of CommandContext/Room#tr ( #7744 )
2020-12-01 06:31:55 -08:00
Mia
186677239d
Nicknamefilter: Support hiding nicks from filters ( #7751 )
2020-12-01 06:21:17 -08:00
PartMan
e3a93f7578
Add missing </details> ( #7755 )
...
Doesn't really matter since it gets automatically added, but doesn't feel right without it. 'o.o
2020-12-01 06:18:38 -08:00
aQrator
62d96c2210
Scavengers: Expand the functionality of /scav timer ( #7740 )
2020-11-29 09:10:52 +01:00
Annika
da83a9bc37
Chatlog: Keep Upper Staff logs secret
2020-11-27 11:24:02 -08:00
Annika
a1b085f033
Chat monitor: Support unit tests ( #7710 )
2020-11-26 01:33:09 -08:00
Annika
fc049e8d40
Hosts: Remove unused multiline functionality
...
Also lets us utilize more descriptive modlog entries & private mod actions!
2020-11-25 19:32:41 -08:00
zgeorgecsat
3ec8821083
Mafia: Fix sub and IDEA bugs ( #7705 )
...
* Allows players that subbed out or stopped cohosting to be forceadded into the game.
* Upon subbing, players' pages update after the subbed player is removed from the playertable.
* Allows /mafia dt for ideas
* Shift plurality to the subbed in player.
* Fix clear button
* Adds spaces between roles in role list.
* Syntax fixes
* Add info to /mafia dt <idea>
Co-authored-by: Student <Student@MacBook-Air-5.hsd1.il.comcast.net>
2020-11-26 13:12:03 +10:30
Mia
23615e5ce0
Youtube: Make /show show videos directly in chat ( #7725 )
2020-11-24 10:14:04 -08:00
MacChaeger
c86c5966d9
/dexsearch: Fix immunity check for Thousand Arrows ( #7727 )
...
Unlike /effectiveness and /coverage, /dexsearch doesn't need to support
arbitrary mods, so Thousand Arrows can be hard-coded as the only move to
ignore any immunities.
2020-11-24 10:12:53 -08:00
MacChaeger
3156d039bd
/randombattles: Check Gmax forme for moves ( #7724 )
2020-11-24 08:46:17 -08:00
Annika
7b9903bc8e
Chatlog: Support room aliases in /linecount ( #7652 )
2020-11-23 15:12:36 +04:00
MacChaeger
2b4de5d9d5
Fix type immunity check in /ds weak and resists and disallow status moves ( #7717 )
2020-11-22 00:48:40 -08:00
Annika
90645c1cad
Helptickets: Fix typo
2020-11-20 17:32:13 -08:00
MacChaeger
5d71b3a28f
Dexsearch: Support resists move and weak move ( #7713 )
2020-11-20 00:50:09 -08:00
Annika
34cab27a74
Properly type Promises ( #7712 )
2020-11-19 23:19:42 -08:00
Mia
af36329377
Filters: Properly stop forcerenamed names from being used ( #7709 )
2020-11-19 05:08:22 -08:00
Mia
f4d89b2d54
Helptickets: Mark tickets with offline users separately ( #7708 )
2020-11-19 04:59:44 -08:00
Mia
34d873e491
SOTD: Properly rename JubilifeTVFilms
2020-11-18 16:46:54 -06:00
Mia
aeb3980b6e
Fix build
2020-11-17 19:19:36 -06:00
Mia
c18ea48f97
Thing of the Day: Update TVFilms reference
2020-11-17 19:17:33 -06:00
Leonard Craft
999c617ae1
UNO: correct typo
2020-11-15 13:05:57 -06:00
Mia
0246147e94
Chatlog: Refactor perm checks for gstaff ( #7649 )
2020-11-11 19:54:17 -08:00
Mia
f03cae8360
Youtube: Update category command permissions ( #7668 )
2020-11-11 19:41:38 -08:00
Mia
6f13e3285d
Modlog viewer: Search global modlog when used in adminlog ( #7681 )
2020-11-11 17:23:47 -08:00
Mia
c6f72a9e85
/sharedbattles: Upload replays of shared battles ( #7682 )
2020-11-11 17:23:24 -08:00
PartMan
62371e97de
Remove ^ from staff list in /scav top ( #7683 )
2020-11-11 14:59:11 -08:00
Mia
db7cd135bd
Datasearch: Disallow 'all' search broadcasting in battles ( #7686 )
2020-11-11 14:37:53 -08:00
Guangcong Luo
b9a0d3f494
Fix return signature of context.parse
2020-11-11 03:25:06 +00:00
Mia
2cf1562541
Chatlog: Properly format search regexes in result rendering ( #7674 )
2020-11-10 14:25:12 -08:00
Mia
cf80329b86
The Cafe: Stop holding a reference to the room long-term ( #7677 )
2020-11-10 14:18:36 -08:00
Mia
20e7ee4556
Helptickets: Use globalModAction for /ht ban ( #7664 )
2020-11-10 16:18:45 +04:00
Mia
c6437a1dfc
Responder: Add a page to view ignored terms ( #7665 )
2020-11-09 19:57:23 -08:00
Guangcong Luo
8ce98254c8
Fix vuln in responder
2020-11-09 22:55:20 -05:00
Annika
fceffa6635
Helptickets: Export tickets for easier debugging
2020-11-08 21:03:44 -08:00
Mia
6145fab828
Allow the Help auto-response filter to be used in all rooms ( #7645 )
2020-11-08 20:16:25 -08:00
Mia
fc80f47b0b
Helptickets: Fix ticketban list html ( #7636 )
2020-11-07 19:14:08 -08:00
Konrad Borowski
7bcdf130bd
Chatlog: Escape regex when searching for an user ( #7656 )
2020-11-07 18:19:38 -08:00
Mia
950c74360b
Chatlog: Handle next result buttons properly ( #7658 )
2020-11-07 14:58:53 -08:00
Konrad Borowski
119b98b593
Chatlog: Automatically determine regex engine ( #7657 )
...
This makes ripgrep use PCRE2 for searching logs only when necessary.
2020-11-07 14:32:44 -08:00
Annika
0a27f398df
Helptickets: Display message in unclaimed tickets ( #7647 )
2020-11-05 11:09:47 -08:00
Guangcong Luo
9b5217ab70
Split up dex-data into more files ( #7634 )
...
* Split up dex-data over individual files
This commit introduces:
- `dex-abilities.ts`
- `dex-conditions.ts`
- `dex-formats.ts`
- `dex-items.ts`
- `dex-moves.ts`
- `dex-species.ts`
These files centralize definitions from `dex-data` and `global-types`.
* Inherit ItemData from Item etc
Previously, Condition inherited from ConditionData. Now, ConditionData
inherits from Condition. The advantage of the new approach is that now,
Condition and DataCondition no longer need to be separate types, and
there should be much less duplication of type definitions in general.
This has also been done for
- ItemData/Item/DataItem
- AbilityData/Ability/DataAbility
- FormatData/Format/DataFormat
Species and DataSpecies was already merged, but this also reverses
their inheritance (saving a lot of duplicated definitions in the
process!)
The only one left is MoveData, which is just super complicated and
will need its own commit.
2020-11-05 05:00:13 -08:00
Mia
938d998da0
Mafia: Allow staff to speak in games ( #7642 )
2020-11-05 04:57:09 -08:00
Kris Johnson
acbe53ba4a
Modernize the coding style of the OM chat plugin ( #7643 )
2020-11-05 04:50:05 -08:00
Mia
67ee30f2fd
Introduce Config.noipchecks ( #7626 )
2020-11-04 15:14:30 -08:00
Mia
8a1919fd0a
Chatlog: Update arg handling
2020-11-04 14:24:53 -06:00
Mia
065be6ca78
Topusers: Fix arg handling ( #7635 )
2020-11-04 23:14:40 +04:00
Annika
ee79159a25
Helptickets: Don't make global modlog entries
2020-11-02 21:58:46 -08: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
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
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
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
1ab6091551
Helptickets: Properly quote and escape button HTML
2020-10-29 19:30:06 -07:00
Annika
b6326d7a86
Trivia: Document /trivia move
2020-10-29 15:59:31 -07: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
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
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
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
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
Mia
34db61539e
Youtube: Cache requested video data ( #7593 )
2020-10-27 14:11:30 -07: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
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
97713bad33
Validate timeout durations ( #7556 )
2020-10-22 13:47:26 -07: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
Mia
ef6cad7c9d
CommandContext: Make requireRoom support specifying a room ( #7549 )
2020-10-21 04:21:42 -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
bca73b19cc
Room events: Add a command to view categories ( #7525 )
2020-10-19 01:07:05 -07:00
Annika
fe034ac087
Helptickets: Don't show battles for self-reports ( #7520 )
2020-10-19 00:57:38 -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
018105bd10
Helptickets: Escape HTML in common battles
2020-10-14 08:52:52 -07:00
Kris Johnson
52fb644d9e
Update various datasearch commands ( #7512 )
2020-10-12 15:46:19 +04: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
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
01aed88a57
RPS: Improve matchup handling ( #7497 )
2020-10-09 13:43:47 -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
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
a975f623a4
Chatlog: Add more opts ( #7479 )
2020-10-06 15:21:57 -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
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
Annika
3fcb8f4e00
Use attributes of CommandContext in Chat.filter ( #7461 )
2020-10-03 21:30:20 -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
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
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
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
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
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
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
6e2a336975
Don't duplicate attributions in modlog entries
2020-09-28 15:26:30 -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
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
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
eee5e5fa63
Quotes: escape some HTML ( #7425 )
2020-09-26 20:29:32 -07:00
Mia
78933408bf
Quotes: Move to a chat plugin ( #7421 )
2020-09-26 08:11:42 -07: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
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
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
Mia
2db1922e87
Battlesearch: Improve phrasing and UI ( #7396 )
2020-09-19 16:22:15 -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
59ba8aa876
Chat filters: Support custom redtext ( #7392 )
2020-09-18 20:38:53 -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
Quinton Lee
bf400c4ef1
Restore global bot permissions for /filters list ( #7385 )
2020-09-18 05:08:51 -07:00
Annika
357131ec68
Escape regexes in the filter display page
...
Lookbehind regexes cause problems....
2020-09-16 15:36:08 -07:00
Annika
ba4bb2f120
Helptickets: Display user language and remove prefix ( #7373 )
2020-09-16 01:21:07 -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
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
whales
3cae09feab
Mafia: Fix forcehost
2020-09-13 12:14:49 +09:30
Kris Johnson
b7b609a205
Display BST properly in /crossevo and /showevo
2020-09-11 18:53:08 -06:00
Mia
aa9c36ca62
Thing of the Day: Fix bug in removing users ( #7353 )
2020-09-11 12:54:56 -07:00
whales
89d1d1a9cf
Mafia: Fix broadcasting queue
2020-09-12 00:52:08 +09:30
Mia
23f0c6be74
Helpticket list: Respect ignoring tickets ( #7345 )
2020-09-10 17:26:31 -07:00
Mia
852858a7a0
Help: Fix issue with approvals ( #7347 )
2020-09-10 13:35:16 -07:00
Annika
34ec6ebb56
Help chatfilter: Add closing </code> tag in help ( #7346 )
2020-09-09 17:58:21 -07:00
whalemer
1511fcb821
Mafia: Update permissions ( #7324 )
2020-09-08 12:25:25 +09:30
Annika
471fe7365a
Add "η" to the evasion filter ( #7330 )
...
See https://replay.pokemonshowdown.com/gen8nationaldex-1182878993 for an example of how this can be used to evade.
2020-09-07 12:49:11 -07:00
Annika
8789d619f6
Chatfilters: Spoiler autolocking banwords ( #7295 )
2020-09-06 17:53:33 -07:00
Annika
0a26579afa
Make core commands translatable ( #7279 )
2020-09-06 17:49:53 -07:00
Annika
52cfaa999b
Trivia: Add short alias for casesensitivesearch ( #7325 )
2020-09-06 15:05:32 -07:00
Mia
44fc0123ad
Chat: Refactor CommandContext and PageContext to use ErrorMessage more ( #7234 )
2020-09-06 00:15:16 -07:00
Annika
f4081991d3
Modlog viewer: Fix more button for shared modlogs ( #7320 )
2020-09-05 20:44:40 -07:00
Mia
8f8e197d9c
Helptickets: Stop modlogging to Help room ( #7070 )
2020-09-05 18:25:20 -07:00
Annika
1a987c00bf
Trivia: Support specifying case sensitivity in searches ( #7316 )
...
Co-authored-by: Konrad Borowski <konrad@borowski.pw>
2020-09-05 17:32:40 -07:00
Annika
08818294a8
Log viewer: Escape usernames ( #7309 )
2020-09-05 08:16:29 -07:00
Mia
6b671e9526
Searchlogs: Improve handling of date not found errors ( #7308 )
2020-09-03 17:52:20 -07:00
Mia
73e5284db3
Searchlogs: Fix crash in date parsing ( #7307 )
2020-09-03 17:24:47 -07:00
Lusamine
19355641f0
Remove Anubis from Credits ( #7306 )
2020-09-03 17:06:54 -07:00
HoeenHero
6dab83d6c4
Remove unneeded canTalk check
...
mia asked me to push this since keeping this check will result
in a ghost message if a match is found.
2020-09-02 23:29:57 -04:00
Annika
c5833d637a
Thing of the Day: Fix crash ( #7301 )
2020-09-02 21:35:31 -04:00
Mia
3a8bd28a6f
Help: Fix vulnerabilities ( #7300 )
2020-09-02 21:31:37 -04:00
Annika
8bc416730e
Trivia: Reformat help and don't use module.exports ( #7292 )
2020-09-02 12:07:24 -07:00
Mia
2e5bd14bbe
Help: Disable if a room is not configured ( #7287 )
2020-08-31 16:21:28 -04:00
Mia
42ba4b87d2
Youtube: Fix crash ( #7280 )
2020-08-31 06:45:35 -07:00
Mia
9a0f1ed11e
Fix regex replacing ( #7265 )
2020-08-31 06:19:04 -07:00
Annika
c9fa3fc389
Refactor User#prevNames and User#ips to arrays ( #7267 )
2020-08-29 10:27:03 -07:00
Mia
a8e8604967
Help: Fix crash with approvals ( #7275 )
2020-08-29 00:02:31 -07:00
Mia
a68b1fc31d
Help: Fix HTML error in regex page ( #7268 )
2020-08-27 00:00:24 -07:00
Annika
9d57cc096b
Use the room language to translate mod actions ( #7261 )
2020-08-26 09:05:34 -07:00
Charlie Kobayashi
0828d91deb
Scavengers: fix display bugs ( #7232 )
2020-08-26 07:51:12 -07:00
Mia
f2a8e4c28b
Help: Allow regular users to suggest regexes ( #7260 )
2020-08-26 02:20:57 -07:00
ayiadvance
dc0a52db13
Add reveal option and fix forceresetroles for mafia ( #6695 )
2020-08-26 18:13:56 +09:30
Annika
6931e59df7
Improve Pokémon nickname filter and autolocks ( #7253 )
2020-08-23 20:41:51 -07:00
Annika
5df47bb388
Allow staff to partially bypass the status filter ( #7213 )
2020-08-23 04:28:10 -07:00
Guangcong Luo
e14485656f
Implement a basic /hiderank
...
This doesn't really have any nice-to-have automatic restoration
features but it should be all the important parts.
`user.group` no longer exists, and has been replaced with
`user.tempGroup`, which now applies both to temporary promotions of
unregistered users, as well as temporary hidden ranks of auth.
2020-08-22 07:20:26 -07:00
Annika
ff1cb70a95
Handle evasion filters in Pokémon nicknames ( #7246 )
2020-08-22 01:26:07 -07:00
Annika
dc005c5255
Daily spotlights: Prevent crash ( #7245 )
...
The crashes in the daily spotlight plugin were caused by `/queuedailyat` leaving an empty daily that can't be parsed before failing. This should solve it, but some rooms' spotlight data may still cause crashes. (These rooms should use `/removedaily`.)
2020-08-21 15:16:03 -07:00
Guangcong Luo
8d79bf9725
Rename Dex.deepClone to Utils.deepClone
...
`this.dex.deepClone` still exists as an alias to `Utils.deepClone` for
use in `data/`. I'll need to spend more time figuring out the correct
solution there.
2020-08-21 04:24:34 -07:00
Annika
44d369ca8a
Allow users to set their own language and translate helptickets ( #7220 )
2020-08-19 00:21:51 -07:00
Mia
d8ecdb5f83
Help: Only write state when relevant to the room ( #7207 )
2020-08-18 13:06:52 -07:00
Annika
c00e66b76d
Datasearch: Support excluding monotype Pokemon ( #7214 )
2020-08-15 15:44:46 -07:00
Annika
4cbf905ec8
Modlog: Fix exact searches and improve hotpatching ( #7211 )
2020-08-15 14:10:46 -07:00
Kris Johnson
7fc3cd516e
Add /nomarkshared ( #7201 )
2020-08-12 16:21:00 -07:00
Kris Johnson
5e255012bc
Add a 'bst' property to Species ( #7138 )
2020-08-12 12:06:09 -07:00
Stephen Middleton
33e6783d04
Wifi: Change Lottery winner logic ( #6970 )
...
After a Policy decision within Wi-Fi Staff, it's been decided to update the
Lottery Giveaway to still pick winners when there are less than maxWinners,
but people entered. This will allow low entry GA's to overestimate and still
have winners.
2020-08-12 10:03:39 -07:00
Annika
7df8ad12a9
Hosts: Fix bug with /ipranges widen ( #7202 )
2020-08-12 10:03:08 -07:00
DieterReinert
47e780ef2c
Poll: missing < in opening tag ( #7194 )
2020-08-10 16:30:59 +04:00
Annika
1c5f989837
Datasearch: Allow all-only searches if sorted ( #7182 )
2020-08-08 01:11:46 -07:00
Annika
ce8a1dd975
IPTools: Remove '-nohost' suffix and make minor improvements ( #7108 )
2020-08-07 14:47:18 -07:00
Annika
e47461da6d
Trivia: Fix translation formatting ( #7175 )
2020-08-07 11:39:18 -07:00
Annika
4318d7c9bc
Fix modlog formatting ( #7173 )
2020-08-07 11:17:34 -07:00
Mia
deeed6c789
Remove sim/ and data/'s globals ( #7091 )
2020-08-07 06:44:15 -07:00
Annika
f563252418
Modlog: Fix bugs and support hotpatching ( #7163 )
2020-08-06 22:05:13 -04:00
Mia
00526bb604
Help messagefilter: fix crash ( #7158 )
2020-08-06 10:05:03 -07:00
Lusamine
0f56db1853
Remove extra parentheses from 2 other privateModAction ( #7162 )
2020-08-06 10:04:36 -07:00
Guangcong Luo
873efe91ce
Refactor extractRoom to requireRoom
...
New in PageContext as of 9b3a986ef4ef7:
`extractRoom` no longer shows an error message if the room isn't found.
Instead, `requireRoom` does that.
2020-08-06 00:54:02 -07:00
Kris Johnson
f96ec4fb05
Add strict types to tiers ( #7135 )
2020-08-06 00:41:42 -07:00
Annika
f34ffa9e74
Refactor Modlog into one file ( #7127 )
2020-08-06 00:39:37 -07:00
Mia
fd0f83ff8d
Add a command to show the user's team in battles ( #7068 )
2020-08-06 00:36:43 -07:00
Mia
fbe5d90dd0
Youtube: Add tests ( #7081 )
2020-08-06 00:34:18 -07:00
Annika
7f3e55deb9
Improve help message formatting for /searchlogs ( #7136 )
2020-08-05 23:47:08 -07:00
Mia
647d5af76f
Add a filter for auto-answering questions in the Help room ( #7100 )
2020-08-05 23:44:46 -07:00
Annika
42451ff430
Trivia: Make strings translatable ( #7156 )
2020-08-05 23:23:35 -07:00
Annika
ae11a699a6
Add a BasicRoom#tr method ( #7143 )
2020-08-05 19:14:41 -07:00
Kris Johnson
8c22d4ce97
Add /flipped command ( #7139 )
2020-08-05 05:40:31 +04:00
Annika
92552da849
Helptickets: Always respect ignoreTickets ( #7144 )
2020-08-04 01:32:39 -07:00
Mia
b9c9addfdb
Searchlog: Fix crash ( #7121 )
2020-08-02 16:35:07 -07:00
Annika
ee67a41184
Fix crash in Announcements ( #7126 )
2020-08-02 16:10:50 -07:00
Leonard Craft III
d93501949e
Fix /lottery participants from escaping container ( #7116 )
2020-08-01 22:54:15 -07:00
Annika
6b1a53ae95
Trivia: Add Infinite length ( #7114 )
2020-08-01 17:06:50 -07:00
Annika
1b52e51ae0
Polls: Make strings translatable ( #7110 )
2020-08-01 16:51:41 -07:00
Charlie Kobayashi
448c9cbcee
Scavengers: general improvements ( #7105 )
...
- Add new command to directly stuff a hunt back into the queue
- Better queue response
- Fix extra spaces in teamscav team names
- Get rid of some old code tidbits that were neccessary when roomlogs were still bork
2020-07-31 18:34:47 -07:00
Mia
2a9015457d
Chatlog: Improve search ( #6955 )
2020-07-31 18:00:54 -07:00
Annika
f472b6c123
Announcements: Make strings translateable ( #7102 )
2020-07-31 17:00:37 -07:00
Annika
f25fc4c344
Trivia: Display question numbers ( #7097 )
2020-07-31 14:39:23 -07:00
Annika
05a9f9a1e5
Minor code quality improvements based on LGTM ( #7092 )
2020-07-30 14:24:37 -07:00
Annika
cd85cd7a9d
Hosts & IPTools: Refactor to remove hardcoded ranges ( #7078 )
2020-07-29 23:04:50 -07:00
Guangcong Luo
328ba42a12
Change onChatMessage API to use void return
...
onChatMessage previously took `string | false`, where `false` means
"let the message through". This is a reversal of what `false` usually
means, so this is now updated to `string | void`, which should be
much clearer.
2020-07-29 15:01:04 -07:00
Guangcong Luo
fe2eb27860
Refactor ip and modchat permissions ( #7076 )
...
- `ip` and `ipself` are now separate permissions. This means that `ip`
is now a generalized permission for viewing IPs (no more need to use
`globalban`, since `ipself` now controls the ability to see your own
IP address)
- `alts` and `altsself` are now also separate (all users used to be
able to `altsself`).
- `modchat`, `modchatall`, and `manageroom` are now just one `modchat`
permission whose jurisdiction controls how high you can set modchat.
2020-07-29 00:38:52 -07:00
Peach
d87eeb4e2c
Don't modnote twice on joining a helpticket ( #7049 )
2020-07-29 00:17:24 -07:00
Guangcong Luo
98b5956d93
Linkify TextMonitor roomids
2020-07-28 20:08:27 -04:00
Annika
c16750741a
Fix hotpatching IPTools and multiline patterns for Hosts ( #7069 )
2020-07-27 01:51:28 -07:00
Annika
1bb3ed1531
Trivia: Show creator in /trivia history ( #7067 )
2020-07-26 15:34:12 -07:00
Annika
e0c18e8e0b
Refactor IPTools and add a host management chat plugin ( #7061 )
2020-07-26 12:41:27 -07:00
Annika
c5ebc2683c
Add a help message for /chatlog ( #7063 )
2020-07-25 21:32:26 -07:00
Annika
74e13815af
Modlog: Mark room tournaments in modlog ( #7062 )
2020-07-25 21:32:01 -07:00
Guangcong Luo
c08a1a3199
Fix drivers not having mod powers in battles
...
Battles are now considered personal rooms, and so
`globalGroupInPersonalRoom` now applies to them properly.
2020-07-24 18:51:38 -07:00
Annika
7248e6f87c
Helptickets: Fix grammar and add text about appealing locks ( #7055 )
2020-07-24 15:59:58 -07:00
Guangcong Luo
2f805c93a2
Remove "Battle" prefix from data exports ( #7039 )
...
`BattlePokedex` is now `Pokedex`, `BattleItems` is now `Items`, etc.
I also renamed `Movedex` to `Moves` and `Statuses` to `Conditions`.
`TypeChart` isn't `Types` yet, because unlike the others, it's not
indexed by ID. That should probably be fixed one day.
2020-07-24 12:42:26 -07:00
Peach
be2deb2372
Link IPs in modlog ( #7048 )
2020-07-24 10:47:43 -07:00
Kris Johnson
00b88b521d
Handle Gigantamaxing properly ( #7001 )
2020-07-23 13:27:42 -07:00
Annika
a11753de7a
Trivia: Support pausing and resuming games ( #7038 )
2020-07-23 12:59:14 -07:00
Kris Johnson
31d62a77d8
UNO: Fix typo ( #7035 )
2020-07-22 23:58:07 -07:00
Peach
e9611b7ce2
Remove unnecessary references to the global room ( #7033 )
2020-07-22 08:52:46 -07:00
Lusamine
3a2ca90040
Minor cleanup of global demotion messages ( #7011 )
2020-07-17 01:17:36 -07:00
Nol
b5ada89a74
Wi-Fi: Update Giveaway Message ( #7004 )
...
* Wi-Fi: Update Giveaway Message
* Remove Enter
2020-07-14 22:17:07 +02:00
Mia
6690cfb037
Fix pollqueue page crash ( #6986 )
2020-07-09 22:19:43 -07:00
Annika
db4bb7b46f
Roomevents: Delete events fully ( #6984 )
2020-07-09 05:00:43 -07:00
Annika
2c24650cf7
Daily spotlight: Fix regex to allow whitespace ( #6985 )
2020-07-09 05:00:22 -07:00
Annika
573eb439f8
Datasearch: Don't use Object.keys() in /ds monotype ( #6982 )
2020-07-08 15:39:46 -07:00
Annika
c2f4e524b8
Datasearch: Support /ds monotype without a type ( #6981 )
2020-07-08 15:12:40 -07:00
Kris Johnson
127a04b19e
Make improvements to the UNO game ( #6980 )
2020-07-08 15:12:14 -07:00
Annika
d2a61a2b9d
Daily spotlights: Add queue management commands ( #6974 )
2020-07-07 16:14:50 -07:00
ZestOfLife
a594f0b816
Mafia: Make CS indication more obvious for hosts ( #6684 )
2020-07-07 14:01:33 +09:30
Kirk Scheibelhut
eea2196280
Server side changes to support persistent user settings and privacy changes ( #6947 )
...
NOTE: This is changes the semantics of `hidenext`/`ionext` from
applying to the next created *battle* to applying to the next
created *search*/*challenge*.
2020-07-06 21:18:38 -07:00
Annika
d42e17b7ff
Trivia: Changes to the random category selector ( #6971 )
2020-07-06 21:16:57 -07:00
Guangcong Luo
c124720885
Support throwing error messages ( #6946 )
...
The idea is that throwing `ErrorMessage` will replace needing to pass
`context` variables around (which make it hard to unit test a lot of
chat functions).
I recognize the drawback is that it makes it harder to tell where
chat commands might return from. This might be somewhat alleviated by
a convention such as prefixing everything with `check`
this.checkBroadcastable();
this.checkCan('lock');
I honestly didn't like the old approach of `if (!this.can(...)) return`,
though. It didn't seem very obvious which commands would show error
messages and which needed you to write your own error messages. I think
the new system would at least be clearer about that.
We can also consider things such as some sort of sigil, such as:
!this.checkCan('lock');
There's no other reason to use `!` at the beginning of a line, so I
think this is reasonably unambiguous, although it might take some
time to learn. Also we'd have to screw with eslint.
Another alternative is something all-caps?
this.CHECK_can('lock');
In the end, I still think `this.checkCan('lock')` would be enough, and
I still think it's already an improvement in many ways.
2020-07-06 14:07:02 -07:00
Guangcong Luo
8b3a3e47cf
global is no longer a RoomID
2020-07-06 14:06:00 -07:00
whales
6d3cf8a972
Remove unnecessary room requirements from some commands
2020-07-07 00:54:50 +09:30
Spandan Punwatkar
fa5b90cba3
Add /showevo ( #6957 )
...
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2020-07-06 10:53:10 +04:00
Mia
4997a47314
Commands: Allow the room parameter to be null ( #6948 )
...
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2020-07-05 14:25:09 -07:00
Kirk Scheibelhut
bbfcd7ae25
Remove 'inappropriate status' from reports
...
Staff suggest this is never used for the correct reasons and is more
trouble than its worth
2020-07-04 18:14:10 -07:00
Guangcong Luo
d7ba455e2b
Update permissions
...
Permissions have gotten out-of-date, so this commit syncs them.
Default permissions are now matched with Main, in particular including
the new & rank as admin (removing the old Leader rank and ~ symbol).
Relevant changes:
- Admin (~) and Leader (&) have been merged into Admin (&)
- The 'ban' permission was split into 'globalban' and 'ban'
- The 'broadcast' permission was renamed 'show' (going forward,
"broadcast" should only refer to the big red/blue/green
announcement bars.)
- Bots no longer have global moderation abilities, making it
easier to give untrustworthy bots the "bot" rank.
2020-07-03 17:32:49 -04:00
Annika
61e0a2e9e4
Chatlog: Fix grammar in error message ( #6951 )
2020-07-03 10:47:08 -07:00
Guangcong Luo
bdb0b0ff72
Refactor Net use in YouTube plugin
2020-07-02 17:14:24 -07:00
Guangcong Luo
46c9afa2f3
"Remove" the global room ( #6885 )
...
I couldn't completely remove the global room in one commit, but this
solves basically every problem with it by making it no longer a `Room`.
In particular, this means:
- It's no longer of type `Room`
- It's no longer in the `Rooms.rooms` table
- Its class name is now `GlobalRoomState` rather than `GlobalRoom`
- It no longer tracks its own user list (online user count is now
provided by `Users.onlineCount`)
- It's no longer a socket channel (there's new syntax for "send this
message to every user")
2020-07-02 11:31:34 -07:00
Kris Johnson
7010e0286f
Add OMotM and RoA Spotlight for July 2020 ( #6936 )
2020-07-01 12:59:10 +04:00
Mia
857d5c648e
Youtube: Allow drivers to use /youtube update ( #6933 )
2020-06-30 12:11:09 -07:00
Annika
f017398ffc
Trivia: Automatically join a game when answering ( #6923 )
2020-06-28 12:03:05 -07:00
Annika
4b02342806
Datasearch: Support 'monotype' parameter in /ds ( #6922 )
...
also piggybacked a fix for /as in here
2020-06-28 05:17:00 -07:00
fart
8503a6de1f
Correct commands in poll queue help ( #6916 )
2020-06-25 12:43:04 +04:00
TheMezStrikes
b1247e7892
Fix multiple bugs in events ( #6913 )
2020-06-24 14:52:31 -07:00
Annika
a578ec99c6
Trivia: Fix bug in /trivia history ( #6906 )
2020-06-22 22:35:02 -07:00
Annika
bc2aec5c82
Roomevents: Support event categories ( #6820 )
2020-06-21 21:46:11 -07:00
Guangcong Luo
6af875af8b
Improve RoomPermission/GlobalPermission checks
...
Global permissions can no longer be used as room permissions. Instead,
the two are entirely separate lists, with only a few permissions in
both lists.
2020-06-21 03:53:06 -07:00
Mia
f9e79220dd
Polls: Support queuing ( #6595 )
2020-06-20 23:56:04 -07:00
Mia
f306ed069f
Youtube: Fix crash ( #6891 )
...
Ensure video data exists in the response
2020-06-20 20:47:55 -07:00
Mia
a888c10bb6
Youtube: Don't crash if key isn't configured ( #6848 )
2020-06-20 20:16:07 -07:00
Annika
128d36aa0b
Trivia: Add /trivia history command ( #6880 )
2020-06-19 22:43:10 -07:00
Ben Davies
b867fce831
Don't use String#split with an empty string as an argument
...
String#split with an empty string as an argument butchers Unicode
codepoints that are more than one character long.
String#[Symbol.iterator] doesn't, and is also faster.
2020-06-18 10:50:44 -03:00
Mia
1f6029e156
Youtube: Fix ID crash ( #6858 )
2020-06-17 20:42:02 -07:00
Guangcong Luo
ba53a2831c
Fix bugs in /show
...
- Chat.getImageDimensions and Chat.fitImage now throw if passed things
that aren't image URLs.
- Fix help message if you use /show by itself
- Link to full aize image if image is shrunk
2020-06-17 21:11:52 -04:00
Mia
9521580ecf
Modlog: Prevent non-gstaff from searching for IPs ( #6844 )
2020-06-16 15:51:59 -07:00
Mia
6c97866f83
Add commands to show media in chat ( #6745 )
2020-06-16 14:40:10 -07:00
Annika
f177ae31dc
Trivia: Fix bug with computing user ranking ( #6843 )
2020-06-16 14:03:39 -07:00
PartMan
0127813e8c
Show given hints on /scav hint ( #6842 )
2020-06-16 11:22:44 +02:00
Annika
838d53bf93
Modlog: Escape search terms ( #6835 )
2020-06-14 19:39:57 -07:00
Guangcong Luo
902dfaba4f
Better document debug options in config-example.js
2020-06-13 15:58:35 -07:00
Kris Johnson
394a4c5c9d
Fix UNO DQ message to use correct name ( #6831 )
2020-06-13 11:21:58 -07:00
Annika
7af048c85b
Datasearch: Fix maxgen and learnset interaction ( #6825 )
2020-06-10 21:53:21 -07:00
Mia
31263c79a0
Youtube: Fix crashes with checking ID ( #6826 )
2020-06-10 21:52:54 -07:00
Mia
6839a1f4db
Add a library for utility functions ( #6817 )
2020-06-09 22:06:43 -07:00
Charlie Kobayashi
f4c680ac68
Scavengers: Fix /scavtop error due to auth/settings refactor ( #6823 )
2020-06-09 17:33:03 -07:00
Guangcong Luo
8c4d55b184
Fix bugs in Settings refactor
2020-06-09 15:40:54 -04:00
Mia
15fed24b40
Refactor auth and room.settings ( #6777 )
...
This implements two big changes:
- All settings shared between `room.chatRoomData` and `room` have been
merged into `room.settings` (so, for instance, `room.slowchat` is now
only `room.settings.slowchat`).
This makes it so we never have to worry about them getting "out of
sync".
- Checking to see if a room is persistent is now `if (room.persist)`
instead of `if (room.chatRoomData)`
- `Rooms.global.writeChatRoomData()` is now rarely called directly;
there's a new `room.saveSettings()` which will handle it for you.
- All properties of `room.settings` are now optional (except
`title`).
- There's a new file `user-groups.ts` which handles authority.
- `room.auth` and `Users.globalAuth` are now
`Auth extends Map<ID, GroupSymbol>` objects.
- `room.auth` is now always defined, removing the need for
`room.auth?.[userid]` workarounds.
- A lot of code relating to usergroups and permission checks have
been refactored.
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2020-06-09 08:22:25 -07:00
PartMan
6848861887
Support Crit in Movesearch ( #6808 )
...
A lot of people had been asking about whether it was possible to search for moves with a high critical-hit ratio (relevant for building with things like Sniper or Focus Energy).
(Also includes a refactor to cut down on the number of type assertions
necessary in movesearch code, by Zarel)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2020-06-08 09:52:21 -07:00
Annika
f4863a9444
Update references to Global Administrators post-flattening ( #6815 )
...
Co-authored-by: Charlie Kobayashi <sparkychildcharlie@gmail.com>
2020-06-08 09:41:03 -07:00
Annika
14140d1543
Roomevents: Fix bug in getAllAliases() ( #6805 )
2020-06-05 18:28:28 -07:00
Mia
da1da746b3
Youtube: Use Net library ( #6803 )
2020-06-05 15:20:29 -07:00
Charlie Kobayashi
3394053fb6
Scavengers - minor fixes ( #6802 )
2020-06-05 08:03:42 +02:00
Mia
cf42c6269a
Add a library for making HTTP/S requests ( #6744 )
2020-06-04 11:53:58 -07:00
Guangcong Luo
7b33aef0e3
Fix room events crashing with no alias
...
PR #6781 only fixed one of the crashes; the real problem was that the
code expects aliases to be an empty array if rooms have no aliases,
which have multiple flaws including unnecessarily taking up JSON
space.
2020-06-04 14:49:38 -04:00
Mia
c9c7f6a747
Youtube: Accredit videos and improve interval ( #6762 )
2020-06-04 06:54:05 -07:00
Annika
acaa378e89
Roomevents: Fix bug with not displaying aliases ( #6798 )
2020-06-03 10:56:43 -07:00
Charlie Kobayashi
9fc16889bd
Scavengers: Add Team Scavs mode ( #6794 )
2020-06-03 09:47:19 -07:00
SSlayer9
919ce1ef5d
Hide event alias column in event table if empty ( #6791 )
2020-06-03 03:29:57 -07:00
Annika
7a1a989927
Datasearch: Support gen and maxgen flags in /is and /as ( #6793 )
2020-06-02 22:31:08 -07:00
fart
3add88abdf
Room Events: Fix crash when room event "aliases" is undefined ( #6781 )
2020-05-31 13:45:31 -04:00
asgdf
386b5863f4
Support binary/hex/octal output in /math ( #6686 )
2020-05-31 10:27:06 -07:00
Annika
61905ab8e0
Datasearch: Use species.nfe in /dexsearch ( #6778 )
2020-05-30 22:38:21 -07:00
Annika
0bb3c99f93
Datasearch: Support searching for fully evolved Pokemon ( #6775 )
...
also redesigned dexsearchhelp
2020-05-30 21:45:01 -07:00
Annika
b454343aee
Room events: Support aliases and renaming ( #6748 )
2020-05-30 17:54:13 -07:00
Mia
793a704d93
Trivia: Fix bug in getting the game ( #6770 )
...
room.getGame always returned null, since trivia games have different constructor names, so no one could join and no games could be ended.
2020-05-30 03:33:30 -07:00
Kris Johnson
18fbcbc914
Typescript Trivia ( #6768 )
2020-05-29 23:53:52 -07:00
Annika
c67ada355b
Datasearch: Support searching for moves by target ( #6755 )
...
(Also redesign movesearchhelp)
2020-05-29 20:22:29 -07:00
DeltaCoderr
1c33855a3d
YouTube: Fix Grammar ( #6761 )
...
Co-authored-by: Konrad Borowski <konrad@borowski.pw>
2020-05-29 18:32:52 +02:00
Guangcong Luo
26aebe0aaa
Improve Scavengers design
...
- Long answers now wrap (I tried so many different ways to do this
in CSS, involving nested divs with max-width, and ended up giving
up and just inserting `<wbr />`s into the code.
- Hints are now in boxes, making them easier to see
- There's a "to answer, use /scavenge ANSWER" prompt next to the
hunt start message, to help new players.
- Fixed a bug with help permissions
2020-05-29 04:22:40 -04:00
Mia
73b7b451d0
Fix crash in YouTube plugin ( #6757 )
2020-05-29 01:16:26 -07:00
Annika
814bf797e8
Datasearch: Add /abilitysearch command ( #6759 )
2020-05-28 22:06:35 -07:00
Annika
9c13f73bad
Trivia: improve help and allow changing answers in Triumvirate ( #6753 )
...
* Trivia: improve help for /trivia new
* Trivia: allow changing answers in Triumvirate mode
* tars -> targets
* Escape player usernames
2020-05-28 10:13:51 +02:00
Mia
c09ecdb12b
Chatlog: Fix memory crashes, improve UI ( #6750 )
2020-05-27 21:47:50 -04:00
HoeenHero
02164f2ba0
Youtube: Don't crash when adding an invalid channel
2020-05-27 08:16:22 -04:00
Mia
40f5fcf0e2
Youtube: Error out if there are no channels in the database ( #6749 )
2020-05-26 23:44:02 -07:00
Guangcong Luo
69f866ea94
Rephrase "has crashed" to "crashed"
...
This is a really minor thing, but fewer words tend to make
sentences more readable, and crash messages should focus more
on why something crashed than the crash itself.
2020-05-26 19:35:46 -04:00
Mia
de24f97f03
Youtube: Add plugin for viewing videos/channels ( #6740 )
2020-05-25 18:35:38 -07:00
Mia
c246ae51b4
Support searching roomlog entries ( #6494 )
2020-05-25 18:22:51 -07:00
Annika
7fd6d4f7f4
Trivia: Remove Weakest Link ( #6743 )
2020-05-25 17:16:44 -07:00
Annika
a4f56d27d2
Trivia: Add Triumvirate mode ( #6742 )
2020-05-25 14:13:21 -07:00
cheese-testing
8dbef59cd7
Scavenger games: Allow finishers to continue and announce correctly
2020-05-24 21:42:35 +02:00
Charlie Kobayashi
0229d9bb01
Initialize scavSettings properly ( #6735 )
2020-05-23 15:02:46 -07:00
Charlie Kobayashi
b30d09a3eb
Scavengers: Initialize all settings as null ( #6734 )
2020-05-23 14:46:59 -07:00
AnnikaCodes
8fb5e93433
Trivia: support picking a random mode ( #6731 )
...
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2020-05-23 15:45:16 +02:00
Charlie Kobayashi
9cb8fc4257
Scavengers: Convert to TypeScript ( #6726 )
2020-05-22 17:06:03 -07:00
PartMan
2588cee95c
Fix Visual Lottery Bug ( #6729 )
...
https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/post-8474970
2020-05-21 17:56:09 -07:00
Nol
41300c183c
Wi-Fi: Update giveaway message ( #6725 )
2020-05-21 18:14:39 +02:00
spixi
67d6ffb236
Fix /om chat command: wrong URL ( #6722 ) ( #6723 )
2020-05-20 17:46:27 -07:00
asgdf
9af7d0c948
Wifi plugin: Fix display issues ( #6720 )
2020-05-20 15:54:18 +04:00
PartMan
7185d8129b
Remove 10-minute restriction from Help
...
(They now work before the 10-limit mark; updating the help message to reflect that)
2020-05-19 00:27:51 +02:00
Guangcong Luo
0fa758bbea
Hide uhtml from /chatlog by default
...
uhtmlchange messages, which should never have been in the chatlog
in the first place, are now always hidden.
uhtml messages are now hidden by default (can be shown with the `all`
option), because they lead to huge message sizes which cause problems
with the server, in gamecorner and a few other rooms which use it a
lot.
2020-05-18 17:04:42 -04:00
Charlie Kobayashi
75105eea8d
Scavengers: Remove 10 minute restriction on hints ( #6707 )
2020-05-16 18:45:16 -07:00
Konrad Borowski
c687b3b0ed
Replace attributed uhtml on change ( #6693 )
...
Not doing so wastes a lot of bandwidth.
This fixes https://www.smogon.com/forums/threads/dont-send-all-uhtml-messages.3664370/
`|uhtmlchange|` is no longer automatically parsed; please use
`room.uhtmlchange(` instead.
2020-05-16 07:16:42 -07:00
Kris Johnson
9b56380bbc
Random Battles chat plugin: Add /cap1v1 ( #6698 )
2020-05-16 10:45:31 +04:00
1Nactive
491b5439d8
vgotd: replace quote with tagline ( #6689 )
2020-05-15 13:11:35 -04:00
PartMan
a362aeb9b5
SAdd /scav removehint and /scav edithint ( #6690 )
2020-05-15 09:48:33 +02:00
TheMezStrikes
b29e3b53af
vgotd: add missing Image property ( #6677 )
2020-05-14 10:52:51 -04:00
HoeenHero
b39b583b4b
Add support for a Video Game of the day
2020-05-11 13:39:18 -04:00
Leonard Craft III
0dfdf5955b
Fix /ms max ( #6667 )
2020-05-10 01:37:21 -07:00
whales
65539381fd
Mafia: Bugfixes
2020-05-08 00:41:56 +09:30
Kirk Scheibelhut
2af7040270
Group zMove and maxMove attributes ( #6652 )
...
This mostly serves to provide cleaner and more consistent field
naming. maxMove currently doesn't have boosts or effects to group
together but who knows what will be thrown at us via DLC, and being
symmetrical with zMoves is a nice.
2020-05-04 20:21:27 -07:00
Lusamine
49ab39dc8b
Fix sprite formes for Wi-Fi lotto giveaways ( #6645 )
2020-05-02 20:27:08 -07:00
Charlie Kobayashi
4a3881a1c0
Scavengers: Add Jump Start ( #6647 )
2020-05-02 20:18:11 -07:00
whales
86e29cbfa6
Mafia: Fix bug when joining games
2020-05-03 01:51:28 +09:30
Waleed Hassan
e34301fc07
Lottery: Listify & Hide participants in a readmore ( #6642 )
2020-05-02 19:06:26 +04:00
Guangcong Luo
56f6ab5489
Fix Zygarde-Complete validation
2020-05-01 13:02:30 -07:00
Guangcong Luo
7aa42b1212
Remove Dex.getOutOfBattleSpecies
...
Literally every current use is a bug.
2020-04-30 23:29:20 -07:00
whales
505643144f
Mafia: Bugfixes
2020-04-29 16:30:20 +09:30
Guangcong Luo
549ef7edb1
Fix MoveData interface definition
...
For historical reasons, move property definitions have been very blurry
across `EffectData`. Fortunately, recent refactors have made it
possible to put them all where they're supposed to be.
2020-04-25 12:57:46 -07:00
Guangcong Luo
6a685df8c7
Fix crashes when hotpatching chat
...
(Also fix a mistaken thing-of-the-day refactor: I blame giving two
different variables the same name.)
2020-04-25 11:11:24 -04:00
Astrid Halberkamp
3bbb36d491
TOTD: small fixes and upgrades
2020-04-25 17:06:39 +02:00
Jeremy Piemonte
dcfbada1ad
Blackjack: Do not require an autostart to create ( #6607 )
...
Bug introduced in 36d6dc8b0c (diff-797aaa7fdf5beb7302351b8ad019da67)
2020-04-24 20:14:19 -07:00
Guangcong Luo
31a81a91a2
Fix @type in .ts files
...
Some JSDoc type assertions failed to get converted during various .ts
refactors. This commit takes care of them.
2020-04-24 14:19:08 -07:00
Guangcong Luo
f6f4467265
Turn on prefer-const for .js files
...
Not having prefer-const on the JS side makes JS -> TS refactors really
unreadable. This commit just auto-fixes it so we're using
`prefer-const` everywhere.
2020-04-23 11:37:47 -07:00
Guangcong Luo
9bb903da0d
Fix TypeScript for thing-of-the-day
2020-04-23 10:30:22 -07:00
Mia
1a62036aaf
Typescript Thing of the Day ( #6603 )
2020-04-23 10:12:56 -07:00
AnnikaCodes
4a13afab51
Datasearch: don't broadcast errors ( #6601 )
2020-04-22 01:25:10 -07:00
Peach
2828427946
Mafia: Misc updates ( #6583 )
...
* Attribute non-host mod commands
* Fix crash in queue
* Add command for listing all data entries
* Update permissions in help box
credits to @Claire238
2020-04-15 22:40:43 -07:00
Lusamine
12a52bc0d0
Add a linebreak to WiFi GA result ( #6575 )
2020-04-13 20:12:35 -07:00
CameronClarry
15efa254cd
Add '/trivia move' command to trivia plugin ( #6561 )
2020-04-12 23:08:27 -07:00
Nol
61375a24cd
Update Wi-Fi giveaway message ( #6560 )
2020-04-11 23:38:42 +02:00
Charlie Kobayashi
44250d7d3b
Support (multiple) twists for all game modes ( #6559 )
2020-04-11 13:05:42 +02:00
Peach
0ad24a0acd
Fix bugs in chatlog date parsing ( #6550 )
2020-04-09 22:47:12 -07:00
Peach
b812404669
Fix crash in roomlogs ( #6546 )
2020-04-09 01:32:56 -07:00
Charlie Kobayashi
558202cb96
Make twist setting actually permanent ( #6544 )
2020-04-08 20:33:20 -04:00
Guangcong Luo
d34f4f23f5
Suppress crash while hotpatching helptickets
...
I think this was just due to a different helpticket crash, but sadly I didn't really have the free
time to investigate more deeply.
2020-04-07 21:47:56 -04:00
Guangcong Luo
86081c23ab
Fix chatlog
...
- fix timezone
- `/chatlog [roomid]` should open logs for room
2020-04-07 21:47:56 -04:00
Charlie Kobayashi
6c18107ca6
Scavengers: Information commands for twists ( #6532 )
2020-04-07 09:50:27 +02:00
The Immortal
634658a5ba
Refactor unreleased Pokemon
...
Pokemon that are not available in-game are now consolidated into `isNonstandard`. 'Past' indicates that the Pokemon no longer works in the current generation. 'Unobtainable' indicates that the Pokemon works but can only be obtained through hacking.
2020-04-06 20:53:03 +04:00
Kris Johnson
edf18b57d4
Fix /randbats not working in Gen 1/2 battles ( #6519 )
2020-04-03 17:36:17 +04:00
Charlie Kobayashi
708860f42a
Scavengers: fix point giving ( #6510 )
2020-04-01 12:09:44 -04:00
Charlie Kobayashi
6feb05c357
Rework special scavenger modes ( #6507 )
...
- apply them as "formats"/"mods" instead of a large parent game with another room game nested inside
- the parent game is attached to ``room.scavgame`` as an independent object instead.
- add a command to set the twist (/scav settwist) and reset the twist (/scav resettwist) for scripted formats
- this means that scavenger-games.js might be updated once per month as new twists are created.
- add a command to start a regular hunt with twists
More than one twist can be loaded into a single scavenger hunt (from scavenger game mode + /scav createtwist)
2020-04-01 00:45:49 -07:00
Mia
4005ff6722
Typescript TCG & Tabletop's plugin ( #6474 )
2020-03-31 14:09:38 -07:00
Kris Johnson
adb4eed23b
Other Metas chat plugin: Remove Tier Shift check ( #6504 )
2020-03-30 19:08:16 +04:00
Kris Johnson
b90cae8dff
Other Metas chat plugin: Add past-gen support ( #6499 )
2020-03-30 18:28:01 +04:00
whales
64d3cc59c8
Polls: fix blankvoting, help message
2020-03-27 17:09:04 +10:30
Kris Johnson
4cc1ffa4e8
Datasearch: Fix /ms <pokemon> ( #6491 )
2020-03-26 03:17:02 -07:00
Kris Johnson
994fc60aed
Rename Template to Species ( #6478 )
2020-03-25 23:29:27 -07:00
asgdf
34162abb8b
Add /monthlock command ( #6488 )
2020-03-25 03:59:47 -07:00
Guangcong Luo
604b8142ef
Improve /chatlog support for uhtml
2020-03-23 17:50:15 -04:00
Kris Johnson
ff0968bdc9
Scalemons: Move stat formula to rulesets ( #6481 )
2020-03-22 05:44:47 +04:00
Kris Johnson
770f1a3f7c
Add support for (NU) ( #6475 )
2020-03-20 20:50:14 -07:00
Astrid Halberkamp
867f8c9843
TOTD: COTD -> COTW
2020-03-18 17:41:41 +01:00
Kris Johnson
53299ea068
Random Battles chat plugin: Fix Let's Go support ( #6468 )
2020-03-18 12:47:41 +04:00
Kris Johnson
3e26318758
Refactor learnsets.js ( #6466 )
2020-03-18 00:59:29 -07:00
Mia
6b31c251c7
Fix links for /randbats ( #6467 )
...
currently takes you to play.pokemonshowdown.com/dex.pokemonshowdown.com, which is obviously not right.
2020-03-18 00:48:11 -07:00
Kris Johnson
83ebdb27da
Add Dex#getOutOfBattleSpecies ( #6463 )
2020-03-16 20:31:38 +04:00
Guangcong Luo
64c3d75f1c
Hide deleted rooms by default in chatlog
2020-03-16 03:35:32 -04:00
Guangcong Luo
c4e91d20e2
Improve chatlog design
...
Big thanks to smogon/pokemon-showdown-client@a176317913 for making
this possible!
2020-03-16 03:35:32 -04:00
Guangcong Luo
b7889f048f
Fix chatlog permissions
...
- global auth should now be able to see chat logs of rooms they can't
moderate
- secret and personal rooms that a staff member is either currently in,
or has auth in, will now show up in the main logs list (although
you should just use /chatlog, it's much easier)
2020-03-16 03:21:43 -04:00
Guangcong Luo
7de51956c5
Change BasicChatRoom to Room in some types
...
`user.can` and `user.authAtLeast` now take `Room | BasicChatRoom`
instead of `BasicChatRoom`. It's now significantly less necessary to
cast things to `BasicChatRoom`.
2020-03-15 19:52:59 -07:00
Guangcong Luo
99cf399860
Fix /chatlog command
2020-03-14 00:10:14 -04:00
Guangcong Luo
c6d83508ab
Rename chat-log to chatlog to match modlog
2020-03-14 00:04:42 -04:00
Guangcong Luo
60cbd7d0d7
Implement /chatlog command
2020-03-14 00:04:16 -04:00
Guangcong Luo
f7d2cdf1be
Fix log viewer permissions
...
Drivers/mods should be able to see secret room logs, but not get a list
of secret rooms.
2020-03-13 23:52:41 -04:00
Guangcong Luo
354513ad53
Add log viewer ( #6454 )
2020-03-13 22:18:00 -04:00
Kris Johnson
b077646808
Random Battles chat plugin: Fix various issues ( #6448 )
2020-03-12 12:37:10 +04:00
Guangcong Luo
64ff1da81f
Refactor more things to use inheritsFrom
2020-03-10 09:59:36 -07:00
Kris Johnson
82a3fc7b94
Refactor [Gen 2] Random Battle ( #6435 )
2020-03-09 11:56:15 +04:00
Kris Johnson
86761e3577
Add Random Battles chat plugin ( #6433 )
2020-03-09 09:55:43 +04:00
Waleed Hassan
e86ec0b7fe
Fix Wifi GAs ( #6431 )
2020-03-08 20:23:37 -07:00
Guangcong Luo
647ba61a46
Turn on prefer-regex-exec in eslint
2020-03-07 13:39:02 -08:00
asgdf
cac033ab86
Improve handling of mobile IPs with permalocks ( #6338 )
2020-03-07 11:50:08 -08:00
Guangcong Luo
125fe31d06
Improve eslintrc
...
Fixed some more code style, allowing these rules to be enabled:
- `comma-dangle`
- `function-paren-newline`
- `member-delimiter-style`
- `no-eval`
- `no-fallthrough`
- `no-misused-promises`
- `no-unused-vars`
- `operator-linebreak`
2020-03-06 22:35:55 -08:00
Waleed Hassan
8aa4f053bb
Use optional chaining and linter improvements ( #6422 )
...
This is mostly just a follow up to #6342 .
`prefer-optional-chaining` was turned on and fixed in every location it
complained in. The transformed function [0] looks expensive from a
glance but from skimming through the replaced sites it doesn't appear
to be ran in any important place, so it should be OK.
The linter improvements are:
- Increase linter performance
- Make `full-lint` and `lint` write to different caches so we
avoid overwriting their caches since they're different configs
- Change husky's hook to `npm run lint` so as to write to the
same cache
- Remove `@typescript-eslint/eslint-plugin-tslint` which is
essentially a wrapper to TSLint because the rules aren't worth
running another linter
- Convert `.eslintrc.json` and `.eslintrc-syntax.json` to two spaces
rather than four tabs to respect PS' `.editorconfig`
- Rename `fulllint` to `full-lint` to ease spelling it
[0] - https://pastie.io/mmtxpf.js (prettified)
2020-03-06 11:44:32 -08:00
TheMezStrikes
505836e27e
Escape HTML in events ( #6423 )
2020-03-06 08:51:46 -08:00
Astrid Halberkamp
de1a29c507
Wifi: Remove friendcodes from giveaways
2020-03-06 00:05:52 +01:00
Guangcong Luo
b21c9047e2
Migrate to typescript-eslint ( #6342 )
2020-03-05 08:33:06 -08:00
whales
7038fac173
Fix non-ripgrep modlog
2020-03-02 17:39:36 +10:30
whales
38daf467fc
Add some common rooms to the roomid type ( #6393 )
2020-02-24 19:52:41 -08:00
whales
d546abf87e
Mafia: Fix modlog entry for data commands
2020-02-21 20:39:02 +10:30
whales
926970f765
Automatically upload replays when reporting ( #6380 )
2020-02-21 00:47:19 -08:00
whales
f2ac6a111e
Support polls allowing multiple responses ( #6356 )
2020-02-20 23:54:23 -08:00
Kris Johnson
e64e083e6c
Typescript The Cafe ( #6379 )
2020-02-20 23:01:20 -08:00
Kris Johnson
98190d28a1
Typescript Datasearch ( #6376 )
2020-02-20 16:37:13 -08:00
HoeenHero
3dcc7d21cc
Handle empty/non-existant files when loading
2020-02-19 21:18:10 -05:00
HoeenHero
65bb9635c2
Fix importing of various chat-plugin's data
2020-02-19 21:03:30 -05:00
Kris Johnson
5875f1e3cc
Fix Virtual Console in /learn ( #6374 )
2020-02-18 13:38:19 -08:00
Kris Johnson
2ea84725e2
Typescript Daily Spotlight, RoomFAQs, and Wi-Fi ( #6373 )
2020-02-18 13:26:44 -08:00
Guangcong Luo
d4e2871665
Support validating Gen 8 egg moves
...
Gen 8 egg moves can be grafted onto existing Pokémon, removing
compatibility issues.
2020-02-14 10:57:31 -08:00
whales
d1ff1f44a5
Mafia: Fix bug in nighttalk command
2020-02-15 00:04:56 +10:30
Kris Johnson
5550b164c8
Typescript Calculator and Chat Monitor ( #6365 )
2020-02-13 12:38:12 -08:00
whales
3f0471cc38
Mafia bugfixes
...
Fix aliases with starting IDEAs, suggest the correct nighttalk command
2020-02-13 18:09:09 +10:30
Kris Johnson
9aaab2c57b
Typescript Help Tickets and Modlog and fix warnings ( #6352 )
2020-02-12 21:48:03 -08:00
Kris Johnson
358d947b15
Add Let's Go transfer support ( #6367 )
2020-02-12 21:22:45 -08:00
The Immortal
f86adef3ea
Fix max line length warning
2020-02-12 15:40:06 +04:00
The Immortal
19cdf79821
Update OMs
2020-02-12 14:19:29 +04:00
Kris Johnson
36d6dc8b0c
Typescript Jeopardy, Blackjack, and Room Events ( #6331 )
2020-02-07 03:16:49 -08:00
whales
2a6db11b3e
Fix trackRename message
2020-02-06 23:11:58 +10:30
Kris Johnson
64a37210a3
Add generation and natdex support for /movesearch ( #6320 )
2020-02-05 15:39:42 -08:00
fart
250af8c03b
Fix Lottery Help ( #6324 )
...
There is no lottery editmarkup command. The proper use is to use /lottery edit, which allows you to edit the number of max winners, the name of the lottery, and the HTML, but also requires all three parameters be included.
2020-02-03 19:19:00 -08:00
whales
1e017d205b
Use room#getGame in a few more places in mafia
2020-02-03 23:50:23 +10:30
Waleed Hassan
f7e024e009
Allow safer and exact type retrieval of Room#game ( #6315 )
...
By adding a `getGame` function of type:
```
// null is returned if the gameids don't match
// or the game doesn't exist
getGame<T extends RoomGame>(constructor: new (...args: any[]) => T) => T | null
```
(Credits @urkerab and @whalemer for the function signature.)
It allows refactoring previous code of:
```
if (room.game && room.game.gameid !== 'hangman') return;
const game = room.game as Hangman;
```
to:
```
const game = room.getGame(Hangman);
if (!game) return;
```
This has a couple of advantages:
- TypeScript will throw an error if the if condition is not present.
- In the new code, the template must extends `RoomGame` and be assignable to the same ID, so it's 100% typesafe
2020-02-03 05:09:37 -08:00
asgdf
f5c881cf9f
Add modlog button to appeal tickets ( #6329 )
2020-02-02 23:04:07 -08:00
whales
3c97e7aa22
Mafia: Misc updates, rework data format ( #6277 )
2020-02-03 10:58:30 +10:30
HoeenHero
66916aca5a
Tickets: Fix bug with expiring ticket bans
2020-01-18 15:18:35 -05:00
whales
c4ae4cfdc3
Fix namemonitor message
2020-01-15 20:19:39 +10:30
Waleed Hassan
6714e14fc5
Fix max line length warnings ( #6286 )
2020-01-14 15:30:50 +04:00
whales
4818190b98
Always show shared battles button in helptickets
2020-01-14 12:29:27 +10:30
HoeenHero
56e850ff8e
Remove leftover debug statement
2020-01-10 20:49:20 -05:00
HoeenHero
b1890bb343
Tickets: Only write on destory for open tickets
2020-01-08 08:58:35 -05:00
HoeenHero
86e3c81b8a
Tickets: Ticket rooms expire and close after 40 minutes of inactivity
2020-01-01 20:45:17 -05:00
HoeenHero
913a3b456e
Tickets: Improve ticketban detection
2020-01-01 20:45:16 -05:00
HoeenHero
4704288839
Tickets: Don't use date strings due to inconsitensies between node versions
...
Date strings can have inconsitensies between browsers and apparently node versions too.
sim3 uses a newer node version and as a result date calculations are off by one.
I have swapped to using individual date componets eg `new Date(2020, 0)` to fix this.
2020-01-01 20:45:15 -05:00
Kris Johnson
649ac8ea6b
Typescript uno/othermetas/hangman ( #6229 )
2019-12-31 17:52:26 +09:00
SirMisterGit
10f034c798
Mafia: Don't show "partners" to traitor faction ( #6205 )
2019-12-30 20:37:39 -05:00
HoeenHero
427dc80346
Tickets: Add a dash to IP-Appeal
2019-12-29 19:26:42 -05:00
Claire238
744853cb89
Fix spelling for punishment list ( #6199 )
2019-12-23 09:49:46 +09:00
Leonard Craft III
d57cf6b518
Capitalize "Showdown" in IP-Appeal Help Ticket message ( #6185 )
2019-12-15 03:32:07 +09:00
HoeenHero
37600b7094
Helptickets: Require users to give input for IP-Appeal tickets
2019-12-13 20:58:53 -05:00
Ben Davies
a17b81ccf7
Trivia: nuke | 0 int flooring hack
...
Cool optimization bro, too bad numbers like -0 exist
2019-12-13 08:07:35 -04:00
Waleed Hassan
df14f875ec
Add a RoomBattle#challengeType property ( #5940 )
...
This commit adds a `challengeType` property to `RoomBattle` of
type `rated | unrated | challenge | tour`.
Previously, there was no way to programatically differ an unrated
battle from a challenge, which is useful in places like filters.
2019-12-12 19:09:43 +09:00
Dragonmirror27262
128a3391f8
Fix roomevents help messages ( #5800 )
2019-12-12 00:20:35 +04:00
whales
82b4d95b8e
Mafia: Allow setting an IDEA's rolelist as a theme ( #6173 )
2019-12-12 00:17:45 +04:00
Kris Johnson
8eaf19f882
Add past gen support for /mnm and /stone ( #6177 )
2019-12-12 00:13:47 +04:00
whales
fb6f7cb7dc
Typescript mafia ( #6145 )
2019-12-09 22:17:09 +09:00
whales
0b9d8dd109
Support declarative roomsettings syntax ( #6119 )
2019-12-06 23:16:55 +09:00
Spandan Punwatkar
4876127f08
Update datasearch.js ( #6144 )
2019-12-05 18:04:01 +04:00
Spandan Punwatkar
530e382df1
Fix moves in /nds ( #6138 )
2019-12-04 15:24:50 +09:00
The Immortal
7c6364edaf
Fix /mnm crash
2019-12-03 02:00:52 +04:00
whales
f98261d91f
Mafia: Use a slightly better hack to allow hosts to broadcast ( #6129 )
2019-12-01 14:29:50 -05:00
whales
7446c65c93
Mafia updates
...
Fix Illusionist data, allow hosts to broadcast dt, fix error for joining a full game
2019-12-02 01:16:53 +10:30
The Immortal
f39b05fd1e
Update /mnm
...
Update to gen 8 and remove unnecessary warnings.
2019-11-30 05:46:12 +04:00
Spandan Punwatkar
3deb1c69c4
Dexsearch: Allow searching national dex ( #6106 )
2019-11-28 12:40:30 -05:00
Spandan Punwatkar
d2ac1f1eb9
Dexsearch: Allow searching for some formes ( #6103 )
2019-11-28 23:17:23 +13:00
urkerab
09b66da216
Use Chat.html`` a bit more
2019-11-27 15:14:46 +01:00
Spandan Punwatkar
63694edf91
Some movesearch changes ( #6071 )
2019-11-27 22:28:03 +13:00
Astrid Halberkamp
aace3c4265
Spoiler racial slur evasion
2019-11-25 02:08:43 +04:00
asgdf
2650884341
Remove erroneous autolink escape formatting ( #6047 )
2019-11-22 01:11:29 +04:00
whales
841c028f12
Require a break on either side of evaded words ( #5991 )
2019-11-21 07:15:51 +13:00
420Blazeitt
57885ec588
Update /learn description to include /usumlearn ( #6024 )
2019-11-20 14:41:25 +13:00
TheMezStrikes
3136f4d785
Update datasearch for gen 8 ( #5965 )
2019-11-19 23:43:43 +04:00
fart
a8b5ef671f
Limit MNM warnings to CAP stones ( #6018 )
...
Right now the /mnm command results in warnings that the mega stone is a CAP stone, even when it is not. This is because isNonstandard is now set to "Past" instead of undefined.
2019-11-19 20:21:52 +04:00
Lusamine
b0e649972b
Update Wi-Fi GA message for Gen 8 ( #6004 )
2019-11-19 05:20:02 +04:00
whales
e36dda7b09
Add a few more characters to the evasion filter
2019-11-18 12:59:44 +10:30
asgdf
f1a714d426
Fix /ts command to use gen 7 tier data ( #5971 )
2019-11-17 09:09:04 +13:00
whales
0d7e473672
Allow viewing roomfaqs without showing source ( #5944 )
2019-11-16 00:12:26 +13:00
whales
28be861480
Don't use default property values in announcements
2019-11-15 16:14:00 +10:30
Guangcong Luo
23f9bfa1b7
Split up server/chat-commands/ ( #5943 )
...
`server/chat-commands.js` is now a directory. It's been split into
`core`, `moderation`, and `admin`. `info` and `roomsettings` from
`chat-plugins` have also moved to `chat-commands`.
Some cleanup:
- Bot commands for inserting HTML into rooms like `/adduhtml` have been
moved from `info` into `admin`.
- `/a` has been renamed `/addline`, for clarity (and also moved from
`info` into `admin`).
- Room management commands like `/createroom` and `/roomintro` were
moved to `room-settings`
- `chat-commands/admin` has been TypeScripted
2019-11-15 11:12:54 +13:00
Lusamine
a591b639f7
Fix handling of locked and proxy connections ( #5938 )
2019-11-15 11:10:04 +13:00
Guangcong Luo
411afba392
TypeScript Announcements/Poll chat plugins
2019-11-11 02:13:48 +13:00
Guangcong Luo
c40a7d2fb2
Allow broadcastable commands in command console
...
Command consoles previously would silently fail if you used a
broadcastable command (like `/dt` or `/learn`). They are now let
through, although actually trying to broadcast (like `!dt`) will
still show an error message.
2019-11-11 02:13:48 +13:00
HoeenHero
6bf6c6596b
Do not allow tickets to stay open for more than a day
2019-11-09 14:34:53 -05:00
HoeenHero
e78155766d
Tickets: Automate & improve various tasks
...
- Automatically request PM logs from users when possible in PM harrasment tickets.
- Add a button to check a reported user's global modlog to all tickets.
- Add buttons for force-renaming/clearing the status of a user in inappropriate name/status tickets.
- Add a button for checking shared battles between a the reporter and reported user for battle harrasment tickets.
- Other minor improvements.
2019-11-06 10:27:59 -05:00
HoeenHero
d13a981fea
Tickets: Don't active tickets when they are claimed
2019-11-06 10:27:58 -05:00
Spandan Punwatkar
b3017da7d1
Fix movesearch bug with "lowers" ( #5933 )
2019-11-06 05:17:24 +10:30