Commit Graph

763 Commits

Author SHA1 Message Date
Mia
37b0d3e3dc Info: Support audio/video URLs in /show
Bringing this command up to parity with Officer Jenny's ~link command.
2023-12-09 00:02:47 -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
Hisuian Zoroark
a9ab6ced3c
Smogdex: Properly default to SV (#9924) 2023-11-29 12:58:52 -05:00
Mia
9db7516c87 Fix typo 2023-11-20 22:41:46 -06:00
Mia
a525d519f7 Core: Add /unblockofflinepms 2023-11-20 22:25:35 -06:00
Leonard Craft III
947e783cce
Don't highlight on updateclient/loginserver commands (#9906) 2023-11-15 21:00:45 -06:00
Mia
bd52c2e7cd Don't import room-battle into core chat commands
This import caused room-battle to get deallocated and re-imported on every hotpatch, thus ensuring a new StreamProcessManager (with four child processes) was created each time we hotpatched. I hate this.
2023-11-15 20:30:50 -06:00
Mia
82da90d75e Moderation: Ensure private reasons aren't in offline warns 2023-11-15 00:03:02 -06:00
Leonard Craft III
658af82b89
Add command to view remaining battles during lockdown (#9872)
* Add command to view remaining battles during lockdown

* Use details tag if more than 10 battles
2023-11-12 22:51:16 -06:00
Mia
c63aced654 Core: Reorder blockpms checks to waste less space 2023-11-09 15:12:54 -06:00
Mia
c09f82d5c1 Core: Divorce blockpms for online and offline pms 2023-11-09 15:09:23 -06:00
Mia
b492aec471 Fix various spacing issues 2023-11-05 18:21:16 -06:00
Mia
0211066723
Add offline messaging (#8440) 2023-11-04 14:45:18 -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
Karthik
d3cb797867
Send Open Team Sheets to client in packed format (#9832) 2023-10-17 21:15:09 -05:00
Marty-D
c4b7c73984
Add new avatars 2023-10-09 17:59:56 -04: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
adorluigi
91833a34c3
Fix typo in statcalchelp (#9820) 2023-10-07 11:32:47 -04:00
Mia
5052a2a797 Team-validator: Log userids in debug info 2023-10-03 11:27:39 -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
efc53b669f Info: Use the new format select element for /buildformat 2023-09-29 12:04:52 -05:00
Mia
53c97cfd6d
Implement Bo3 (#9793) 2023-09-22 20:53:23 -05:00
Dirain1700
825ad13217
Roomban: Remove a duplicated space (#9770) 2023-09-14 12:11:30 -05:00
Mia
8cd0921c6e Add /permablacklistname
Forgot about this.
2023-07-09 19:46:35 -05:00
Mia
3ffbda1c43 Add /permabl
This isn't strictly permanent, but that's the command staff asked for and it was agreed 1010 years would work instead of trying to make it truly permanent.
2023-07-09 18:45:25 -05:00
Mia
ec1911a693 Info: Stop hardcoding supported randbats formats in /rcalc
This was messy, inflexible, causing issues, and inaccurate. The randbats calc currently supports all formats.
2023-06-30 02:01:07 -05:00
Annika
cf483fd8a1
Room permissions: Allow control over broadcasting
This does 2 things:
* allows command permissions to be set to the default user group, granting the permission to all users
* lets rooms set permissions for broadcasting on a per-command basis by using `!` as the prefix for a command with no other permissions requirements

This is intended to let Tech & Code room let regular users broadcast `!code`, but potentially has other applications.

Closes #9534
2023-06-05 16:41:34 -07:00
Mia
3303786ee9 Core: Increase max status length to 70 2023-06-01 12:31:18 -05:00
Kris Johnson
05bb7c1ce4 Fix build 2023-05-21 21:56:43 -06:00
Mia
a351f2b1ed Permalocks: Sanitize newlines in context 2023-05-21 16:32:42 -05:00
Alexander B
32adcfaa6a
Rooms: Support changing case/spaces of room title (#9323)
* Rooms: Support changing case/spaces of room title

* Fix renaming groupchats
2023-05-16 18:16:23 -07:00
Sergio
5c56c24561
Modchat: Update the options in /help modchat (#9523) 2023-05-16 18:03:01 -07:00
Dirain1700
7e9a6a3ad7
/requestshow: Allow using comma in comments (#9542)
* /requestshow: Allow using comma in comments

Also refactored #9541, comment should be trimed and stored to variable, not just checking

* Merge requested changes
2023-04-30 22:51:55 -05:00
TomOfTomKat
ba11677d40
Help: Add /moveavatars to /h allowavatar (#9498)
* Help: Add /moveavatars to /h allowavatar

* Update server/chat-commands/avatars.tsx

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

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-04-30 21:51:32 -06:00
Mia
9eefc45d94 Info: Ensure /requestshow checks /show permissions properly
The '/' is added in the permissions checker (when it checks against room.settings.permissions). Providing /show as a parameter means it checks perms for //show.
2023-04-28 08:50:26 -05:00
Dirain1700
1838d5e86a
/requestshow: Fix comments (#9541)
* Implement `/requestshow`

* Revert permission changes

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

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2023-04-27 11:45:40 -05:00
Mia
5b82f0a6ed Admin: Add a command to rebuild the client 2023-04-13 22:21:50 -05:00
Mia
381d0b0fd4 /show: Send button to view if broadcasted
In the light of the YouTube API requiring that only one player is onscreen at a time, this will make it less inconvenient to use /show. If it's broadcasted, it'll post a button that, when clicked, will show the video, instead of just outright posting a player that could potentially destroy another currently onscreen. Effectively, it makes it up to the end user.
2023-04-05 19:29:22 -05:00
adrivrie
31d41b518b
/git: Add newline between Dex and Login server links (#9491) 2023-04-02 09:36:59 -05:00
Sergio
1ffde42bdf
/git: Add loginserver repository (#9481) 2023-03-29 20:25:04 -07:00
Guangcong Luo
bcca542739
Strip # from /avatar
This mostly allows `/avatar #100` rather than `/avatar 100`.
2023-03-26 00:28:31 -07:00
Alexander B
759a447dc5
Moderation: Correct /force notice for weeklocks (#9173)
* Moderation: Correct /force notice for weeklocks

* o o p s

* Update server/chat-commands/moderation.ts

Co-authored-by: Annika <56906084+AnnikaCodes@users.noreply.github.com>

* missed one

---------

Co-authored-by: Annika <56906084+AnnikaCodes@users.noreply.github.com>
2023-03-14 13:38:55 -05:00
Mia
527a4b8b97
Add a command to restart the loginserver (#8513) 2023-03-14 12:03:43 -05:00
Marty-D
c4bdc7ebdb
Add new avatars 2023-02-27 16:57:39 -05:00
adrivrie
485186a109
Chat commands: Add support for /dt9 (#9336) 2023-01-22 12:49:37 -07:00