Commit Graph

3361 Commits

Author SHA1 Message Date
Karthik
81b24c9e79
Default to min source gen 9 for /learn (#9875) 2023-11-02 20:46:52 -05:00
Leonard Craft III
c4e1c0b478
Support defining default best-of formats server-side (#9866) 2023-11-01 23:24:23 -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
0179b9559d Friends: Don't send system messages to the wrong user 2023-10-25 09:13:49 -05:00
Mia
0dbff2ebd2 Friends: Send PMs correctly 2023-10-25 09:11:10 -05:00
Mia
83f6ee6151 Friends: Don't send system PMs to the wrong user 2023-10-25 09:06:15 -05:00
Distrib
cc96551992
Details: Show pre-evolutions (#9846)
* Details: Show previous evolution

* fix

* Remove : Does Not Pre-evolve

* pokemon.prevo

* Update server/chat-commands/info.ts

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Update server/chat-commands/info.ts

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Modlog

* fail

---------

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
2023-10-24 11:26:43 -06:00
Leonard Craft III
81e3628b6e Update CAP command sample teams 2023-10-23 20:04:36 -05:00
Sergio
00d01ca98f
Automodchat: Don't reset timer on disconnections (#9841) 2023-10-22 19:06:50 -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
Karthik
d3cb797867
Send Open Team Sheets to client in packed format (#9832) 2023-10-17 21:15:09 -05:00
Leonard Craft III
b7ebde2cff Bo3: Fix Team Preview check when format has other custom rules 2023-10-12 22:34:41 -05:00
Marty-D
c4b7c73984
Add new avatars 2023-10-09 17:59:56 -04:00
Mia
3e0996329a Add permablacklist to /pl 2023-10-09 10:06:14 -05:00
Mia
82ad08b239 Censor private mod actions 2023-10-08 23:02:31 -05:00
Mia
dd911dea3c Fix typo 2023-10-08 23:01:34 -05:00
Mia
7c6eb9132e Chat: Censor IPs in all global mod actions sent in non-staff rooms 2023-10-08 23:00:12 -05:00
Mia
eb7e1a52c9 Moderation: Don't log /yearlockip output to non-staff rooms 2023-10-08 22:53:27 -05:00
Mia
25eff0eb0d Admin: Make Teams hotpatchable 2023-10-08 22:24:38 -05:00
Mia
d7ea557ecb Teams: Aggressively sanitize inputs 2023-10-08 21:05:18 -05:00
adorluigi
91833a34c3
Fix typo in statcalchelp (#9820) 2023-10-07 11:32:47 -04: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
5052a2a797 Team-validator: Log userids in debug info 2023-10-03 11:27:39 -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
53eb4523b7 Moderation: Allow global warns in best-of child rooms 2023-10-01 20:50:54 -05:00
Mia
d21cb1f2f6 Fix typo 2023-10-01 17:49:02 -05:00
Mia
0a4f2341ee Support /forcewin on bo3 games 2023-10-01 17:46:13 -05:00
Mia
0ad9c405dc Rooms: Allow starting new Best-of child battles during prelockdown 2023-10-01 17:36:43 -05:00
Karthik
c4127bba70
Fix rated Bo3 battles updating rating twice (#9815)
* Fix rated Bo3 battles updating rating twice

* don't delete logdata early
2023-10-01 17:15:53 -05:00
Leonard Craft III
af161e5e90
Bo3: More design tweaks (#9804)
* Fix next battle timer imprecision

* Improve set count indicators

* Update server/room-battle.ts

* Don't leak teams in formats without Team Preview

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-09-29 23:19:39 -05:00
Mia
d488841400 Ladders: Add an onChallenge chat hook 2023-09-29 14:42:23 -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
efc53b669f Info: Use the new format select element for /buildformat 2023-09-29 12:04:52 -05:00
Mia
e7e0dff4a9 Filters: Update help for /filter test 2023-09-28 14:35:33 -05:00
Mia
396aeddf96 Fix checks
Why are void and undefined not the same thing?
2023-09-28 10:38:50 -05:00
Mia
0885fdb216 Tours: Filter names set by /tour create
But for real this time
2023-09-28 10:25:04 -05:00
Dirain1700
7963f2c946
Revert "Tours: Don't allow pipes in names set by /tour create" (#9808)
This reverts commit 3d1790fab9.
2023-09-28 08:38:45 -05:00
Mia
65b9149077 Teams: Fix default format in selector 2023-09-27 23:20:19 -05:00
Mia
3d1790fab9 Tours: Don't allow pipes in names set by /tour create 2023-09-27 21:11:11 -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
Mia
bee1a8857b Teams: Make /teams browse more prominent 2023-09-26 18:34:17 -05:00
Mia
4c7f64b64e Teams: Don't show gen in search if none is specified 2023-09-26 18:33:15 -05:00
Mia
a0eb060066 Teams: Implement unown wordfilter 2023-09-26 18:31:46 -05:00
Mia
1eb22e8b38 Teams: Fix /teams searchpublic 2023-09-25 09:05:10 -05:00
Mia
4f7bfd0faa Teams: Don't add psicons for move types 2023-09-24 22:15:29 -05:00
Leonard Craft III
a686a55862 Shorten best-of-three room titles 2023-09-24 22:09:48 -05:00
Karthik
fff543035e
Bo3: Design nitpicks (#9799)
* Bo3: Design nitpicks

* Update server/room-battle.ts

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

* Update position of `|` for set score display

* consistency

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2023-09-24 18:25:34 -05:00
Mia
c201678b1e Teams: Use Chat#filter to filter team names 2023-09-24 12:18:20 -05:00
Mia
2ccc9ecdda Teams: Document /teams browse 2023-09-24 12:14:39 -05:00
Mia
65697e10f2 Teams: Don't render teams in two tabs 2023-09-24 11:33:41 -05:00
Mia
f190b1c8a7
Add a chat plugin for storing teams remotely (#9513) 2023-09-24 11:22:26 -05:00
Mia
53c97cfd6d
Implement Bo3 (#9793) 2023-09-22 20:53:23 -05:00
Karthik
f69d139235
Linecount: Fix displaying total lines for user pages (#9791) 2023-09-20 16:01:11 -05:00
Mia
424e140767 Smogtours: Require accredation on images 2023-09-18 22:58:37 -05:00
Mia
d4d5c241c6 Permalocks: Ensure icons are saved 2023-09-17 22:49:10 -05:00
Mia
3460e4a352 Punishments: Don't report the first row of the sharedips file as a malformed line 2023-09-17 21:00:05 -05:00
Kris Johnson
4ab2c7b5b7 Datasearch: Don't group together Ogerpon forms 2023-09-17 12:26:56 -06:00
Mia
0c8643d20e Permalocks: Fix icons of specific formes 2023-09-15 22:23:40 -05:00
Mia
545653f170 Permalocks: Do not append <PM:null> to log messages 2023-09-15 13:14:04 -05:00
Kris Johnson
6ff8a6839b Mix and Mega: Add support for Masks 2023-09-15 11:41:31 -06:00
Mia
ff75a98245 Permalocks: Update post format and automatically add staff icons 2023-09-14 14:32:32 -05:00
Dirain1700
825ad13217
Roomban: Remove a duplicated space (#9770) 2023-09-14 12:11:30 -05:00
Mia
c10d1290b9 Permalocks: Log to staff when someone submits a nomination 2023-09-14 12:04:01 -05:00
Mia
5a23e2bc8d Permalocks: Allow lower staff to view the list of pending nominations 2023-09-14 12:01:36 -05:00
Leonard Craft III
b668e894ad Fix build 2023-09-06 21:57:32 -05:00
Mia
8d3891982b Rooms: Don't send minor activity updates twice when joining 2023-09-06 20:40:11 -05:00
Leonard Craft III
5296a28b8d
Implement cantusetwice move flag (#9740) 2023-09-06 20:12:30 -05:00
livid washed
ab59e1d86c
Revamp [Gen 6] Random Battle (#9744) 2023-09-03 17:46:35 -05:00
Leonard Craft III
ef1e7fb483 Fix team validator process debug information logging 2023-08-29 20:31:07 -05:00
livid washed
ffa41ec238
Gen 1 Random Battles updates (#9722) 2023-08-28 09:41:35 -05:00
Sergio
7980a3de8e
/fuse: Fix argument parsing (#9707)
* Fix /fuse arg parsing

* Add a space to please the CI god

* Update server/chat-plugins/othermetas.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Fix gen parsing on /fuseN

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-08-14 10:11:46 -06:00
Kris Johnson
90640859b2 Fix /nds interaction with moves 2023-08-11 23:50:54 -06:00
Mia
77dbd30182 Permalocks: Export more functions for debugging 2023-08-11 00:22:06 -05:00
Mia
bdab2ebb91 Permalocks: Use new IP geolocation API 2023-08-10 23:57:53 -05:00
ACakeWearingAHat
118d114bd1
Revamp [Gen 7] Random Battle (#9692)
* Create framework for Gen 7 rands revamp

* Shuffle moves and deal with Z-Conversion Porygon-Z

* Add isDoubles as a input for STAB enforcement

* Undo previous

* Move gen 7 doubles code to a separate file

* fill out moves

* revamp abilities

* minor moveset updates

* prevent technician alolan persian

* mostly linting

* Revamp setup moves

* Male Greninja

* Further clean up Setup lists

* More Z-move stuff

* Tweak move and ability incompatibilities

* enforce shadow sneak on kecleon

* Add Geomancy to setup and prevent evasion abilities by default

* items

* more minor set updates

* linting

* add more z-move users

* soundproof kommonium clanger

* rockium kabutops

* Weak Armor adjustments + some syntax

* refactor and fix /setodds and /randbats and /randdubs

* improve item generation code

* Allow plot sucker houndoom

* Allow Power Construct on Zygarde and homogenize gen 6 ability generation code

* Don't apply new noSTAB list to gen 7 doubles

* Fix -ate abilities

* comment

* Rework shed skin a bit

* Abilities tweaking/simplifying

* simplify Magnet Pull, since Probopass always has earth power

* Enforce U-turn on some Bug types

* Rework specific ability rejections into enforcements

* Prevent Oblivious on Pokemon with no Status moves, since infatuation doesn't exist

* Remove unnecessary item generation code

* Remove Petaya Berry from HP EVs adjustments

* prevent scarf lanturn

* scarf physical changes

diggersby/medicham

* Give Genesect-Douse its level

* Bug fixes and minor set changes

* Split raichu-alola

* Remove unnecessary preferred types

* Don't enforce HP flying on flying types

* make 4 atks jirachi av

* Actually give Jirachi AV and prevent swift swim kingdra with focus energy

* remove another unnecessary ptype

* Drain Punch/CC incompatibility

* Enforce recovery on support Mew

* Prevent Life Orb with Sturdy

* add preferred type(s) to /randbats for gen7

* lint

* forgot semicolon oops

* Remove kangaskhan PT

* Fix u-turn enforcement

* Enforce recovery on Volbeat

* Don't give Honchkrow Black Glasses

* Setup Solgaleo should get Weakness Policy

* Add Bulk Up to guts hariyama

* make Kingler setup sweeper

* Stoutland set update

* Prevent Sash Mismagius and double fire move Volcarona

* Prevent Choice Scarf on Wallbreaker

* Enforce recovery on Ledian

* Remove Ice Beam from Absol-Mega

* Adjust Seviper PTs

* PT normal Heliolisk

* Add PUP to nostab

* Future-proof Nihilego's SpD EVs in case of level changes/Hidden Power IVs

* Change Shaymin PT to Flying

* Prevent lead Focus Sash with Defog or Regenerator

* Remove unnecessary condition for sash

* Move pivotingMoves to the top

* Support Max Move Count tests for gens 7 and 9

* Move general incompatibilites to incompatiblePairs array

* Create a type for roles

* Make Gen 7 no longer inherit from Gen 7 doubles

* Remove unnecessary hardcode

* Remove now unnecessary code (after doubles/singles separation)

* Move hardcodes into incompatiblePairs array

* Split ability enforcement into species and non/species conditions, and fix up some minor things

* Convert ability enforcements that only apply to one Pokemon to species-based

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

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

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

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

* Update random-teams.ts

* make types for role and preferredType explicit in function definitions

* Update test/random-battles/gen7.js

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen6/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen6/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/gen7/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* finish snake casing the gen 7 file

* snake case gen 8, hopefully

* Update random-teams.ts

* lint please

* missed a snake

* Fix an incompatibility

* Add types for randomSets

* Simplify /randbats data retrival for Gen 7 random doubles

* Further simplify gen 7 randdubs command

---------

Co-authored-by: livid washed <115855253+livid-washed@users.noreply.github.com>
Co-authored-by: adrivrie <adriaan.de.vries@hotmail.com>
Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-08-10 12:09:09 -06:00
Kaen
ec39d634e0
/fuse: Allow providing one argument (#9700)
* Fuse command with single value

* im bad at this

* so hp still appears

* Help entry

* Update server/chat-plugins/othermetas.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-08-06 14:42:09 -06:00
Kris Johnson
2557b66715 Fix Frantic Fusions bugs 2023-08-04 01:18:04 -06:00
Kris Johnson
8d3f9f3b52 Add Frantic Fusions Mod and command 2023-08-04 00:52:17 -06:00
pyuk-bot
2f9b99be88
Support format aliases in /randswinrates (#9687) 2023-08-02 22:45:28 -04:00
Sergio
66824f09a6
Movesearch: Remove empty spaces from 'sheer force' before validating (#9688) 2023-07-31 09:25:55 -05:00
Dirain1700
ca14b9e758
Tournaments: Show toolbox for reconnected players if the tournament was not started (#9662) 2023-07-31 00:36:16 -05:00
dot-Comfey
684e9ee2a2
Fix , all in /as and /is (#9657)
* Fix , all in /as and /is

* Update datasearch.ts
2023-07-26 23:38:23 -07:00
Mia
8190a15f8a Helptickets: Add aliases to ensure /ticketban and /unticketban work 2023-07-10 22:40:18 -05:00