Commit Graph

1903 Commits

Author SHA1 Message Date
Kris Johnson
e8c106ea1e Remove all mentions of "Nintendo" 2023-12-21 11:44:43 -07:00
Mia
43a04d3220 Scavs: Fix crash 2023-12-20 01:50:19 -06:00
Karthik
034ae7ce4d
Allow Announcements to be edited (#9932)
* Allow Announcements to be edited

* actually save the edit + change wording

* rearrange stuff
2023-12-18 20:48:54 -08:00
Mia
9c5932c4f8 Chat-monitor: Update evasion detection substitutions table 2023-12-18 17:38:36 -06:00
livid washed
02b00792af
Random Battles: Combine Alcremie winrates (#9970) 2023-12-15 23:32:37 -07:00
Sergio
a1ced8d4b3
Implement /viewquote last (#9952) 2023-12-11 12:32:31 -06:00
Guangcong Luo
eb60769cd3
Refactor learnset checking (#9951)
After seeing fifty different ways we use `getLearnset`, most of which
are just "haphazardly assemble a movepool", I decided to write
`getFullLearnset` and `getMovePool`, which centralizes the
implementations and prevents weird bugs like 9713dc6db5 which
we spent two years trying to figure out.
2023-12-08 22:45:47 -06:00
Distrib
aace270df8
Friends: Add class for the 'add friend' input (#9901) 2023-12-08 04:28:31 -06:00
Mia
39295329b6 Teams: Fix crash in access validation 2023-12-07 20:38:57 -06:00
Kris Johnson
e56b0cbe68 FIx /tiershift 2023-12-01 12:13:18 -07:00
Kris Johnson
48eeb35e4b Add December 2023 tier shifts 2023-12-01 10:44:36 -07:00
Sirz Benjie
6f2c1537a2
Add fuzzy searching to the /randbats command (#9907)
* Added fuzzy searching to the /randbats command

* Removed excess checks for isInexact

* Update server/chat-plugins/randombattles/index.ts

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>

* Added message indicating when fuzzy searching occured

* Added missing semicolons

whoops

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2023-11-28 16:26:14 -06:00
Mia
ab8b67405b Chatlog: Properly cache day stat results by roomid 2023-11-22 20:35:28 -06:00
Sergio
f4a8b501fe
Fix HTML tag in /friends (#9908) 2023-11-17 22:47:48 -06:00
Kris Johnson
55a38d445e Add proper ZU support for old gens 2023-11-17 13:59:18 -07:00
Sergio
f05bbb7fd5
Update /otd help (#9900) 2023-11-13 15:45:39 -06:00
Mia
72413823ce Friends: Add 'add friend' button to the main page 2023-11-10 09:43:24 -06:00
Mia
aa68115a85 Chatlog: Trim search ops provided in command 2023-11-08 16:27:51 -06:00
Mia
47b22f2d05 Chatlog: Don't count the current day in /roomactivity output
When the day isn't over, it drastically skews the outputs since it's not complete data. Also fixes a typo.
2023-11-08 09:48:48 -06:00
Mia
b492aec471 Fix various spacing issues 2023-11-05 18:21:16 -06:00
livid washed
84ac9e9e3e
Revamp [Gen 4] Random Battle (#9883) 2023-11-05 17:28:02 -06:00
Mia
0f81d192f8 Helptickets: Rename notifying-subtle class 2023-11-02 23:26:19 -05:00
Karthik
81b24c9e79
Default to min source gen 9 for /learn (#9875) 2023-11-02 20:46:52 -05:00
Kris Johnson
6239b39af3 Add November 2023 RoA Spotlight 2023-11-01 11:36:13 -06:00
livid washed
f4757ed114
Gen 2 Random Battle updates (#9867)
* Gen 2 Random Battle updates

* oops remove that console.log
2023-10-31 10:12:33 -06:00
Distrib
140fcba5ef
Autoresponder: Improve Modlog (#9855)
* Autoresponder: Improve Modlog

* Update server/chat-plugins/responder.ts

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2023-10-29 18:10:14 -05:00
pyuk-bot
a107e2b49e
Randswinrates: Support taking a gen as a parameter (#9861) 2023-10-29 18:08:42 -05:00
Mia
47e7df5548 Remove more unused plugins 2023-10-25 14:13:43 -05:00
Mia
be5ad9da84 Remove unused plugins
Purge part 1 of 2.
2023-10-25 10:18:01 -05:00
Mia
0dbff2ebd2 Friends: Send PMs correctly 2023-10-25 09:11:10 -05:00
dot-Comfey
8fb16faf70
Improvements to room FAQs and repeats (#9270)
* Improvements to room FAQs and repeats

- Removed /rfaq alias check when setting a topic to repeat. If a /rfaq alias is set to repeat, the text of the topic the alias is set for is displayed, rather than the topic's ID.
- If a /rfaq is deleted, repeats linked to it or one of its aliases will also be deleted, preventing a crash caused by trying to display a nonexistent topic.
- A separate problem, but the ability to set a topic as an alias of itself has been removed. Because this is possible, you can have a topic which is registered in the server, but does not appear at all if you type /rfaq.

* Remove unnecessary toID

* Update room-faqs.ts

Avoiding lint error array-callback-return

* Use for loop instead of map

* Update room-faqs.ts

* Restore original code, prevent overriding topics

Turns out it is possible to cause a similar crash that is not related to repeats. This can be done by creating two topics (Topic 1 and Topic 2) and making Topic 2 have an alias (Topic 3). You can then make Topic 2 an alias of Topic 1, making Topic 3 an alias of an alias. Deleting Topic 1 will delete Topic 2 but not Topic 3, and typing /rfaq Topic 3 will cause a crash.

It feels like it would overcomplicate the code to try to redirect existing aliases. I don't know how often people override topics, but the removal of this does not seem like too much of an inconvenience (just one extra step to convert a topic to an alias).

Also, for some reason, removing an alias would remove a repeat linked to the topic. Not sure why it was made that way, so I made it so that removing the topic is the only thing that should remove the repeat.
2023-10-22 18:28:33 -05:00
Mia
c72feb9662 Teams: Sort search results by date 2023-10-21 14:37:22 -05:00
Mia
d7ea557ecb Teams: Aggressively sanitize inputs 2023-10-08 21:05:18 -05:00
livid washed
cb3935aabc
Revamp [Gen 5] Random Battle (#9822)
* Preserve Gen 4 rands

* Set up move arrays

* Create framework for new system

* Remove some gen 6 stuff

* Implement Spinner role code

* make Priority Pokemon work

* Fix castform level

* Remove random-data.json

* Remove more gen 6 abilities

* Treat Nature Power like eq

* More gen 6 removing

* knockoff nostab

* Prioritise non-speed setup moves on setup roles

* Enforce recovery on Spinner

* Bisharp blackglasses

* Add comment re. Nature Power

* Remove duplicate comment

* Update tests for gen 5

* Add tests

* fix some things in json file

* formatting

* fill out random-teams

* adjustments

* remove roost raptor

* pt psychic celebi set 1

* lint

* nostab chatter

* Expert Belt conditions

* Fix some incompatibilities

* Item generation

* Formatting

* fix Unaware Clefable

* Refactor some items

* Remove unnecessary code

* Prevent tinted lens night shade noctowl

* Thundurus

* reun

* Pressure tomb

* remove gen 6 setup moves

---------

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
2023-10-06 19:58:51 -06:00
Mia
2bdfa60a7a Teams: Allow freezing views 2023-10-04 16:09:16 -05:00
pyuk-bot
9ca62ade6c
Hide Ogerpon-Mask-Tera formes from searches (#9813)
* Hide -Tera formes from searches when appropriate

* Remove trailing space
2023-10-04 11:16:56 -06:00
Mia
61ee889c27 Fix typo 2023-10-04 10:40:38 -05:00
Mia
cceed49b9a Teams: Autoreplace ability 'none' with 'No Ability' 2023-10-04 10:16:16 -05:00
Mia
2c79279946 Teams: Initialize pages after login 2023-10-02 21:05:07 -05:00
Mia
b25c56b3e1 Teams: Sanitize IDs better 2023-10-02 16:36:46 -05:00
Mia
066961b4a1 Teams: Ensure formatselect defaults to OU properly 2023-10-02 09:55:56 -05:00
Mia
4a38ab4f12 Teams: Hyperlink psicons on display 2023-09-29 12:28:43 -05:00
Mia
54caf0e228 Teams: Correct /teams mostviews help entry 2023-09-29 12:23:27 -05:00
Mia
e7e0dff4a9 Filters: Update help for /filter test 2023-09-28 14:35:33 -05:00
Mia
65b9149077 Teams: Fix default format in selector 2023-09-27 23:20:19 -05:00
Mia
0af724a0f0 Teams: Fix /teams searchpublic 2023-09-27 15:37:37 -05:00
Mia
cded977f4a Teams: Use the new formatselect element 2023-09-27 15:37:24 -05:00
Mia
7a5ebf4b88 Teams: Restrict private teams from list properly 2023-09-26 19:51:12 -05:00
Mia
a6473335d0 Fix crash 2023-09-26 19:22:06 -05:00
Mia
71bf57716e Teams: Use passwords for private teams 2023-09-26 19:16:28 -05:00