Commit Graph

200 Commits

Author SHA1 Message Date
Slayer95
018ea4abef
Support running PS in a single process again (#11331)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-07 00:29:18 -07:00
zianwangs
d6e98c21fb
Fix typos (#11200) 2025-06-19 04:10:12 -07:00
Kris Johnson
df5c46bb53 Remove the Section Leader rank 2024-10-01 21:27:49 -06:00
Kris Johnson
637ba2ac99 Fix build 2024-10-01 12:49:55 -06:00
Mia
6fec31d5a0 Rooms: Support specifying several rooms to report battles to 2023-05-27 23:02:28 -05:00
Annika
431a6c3ad8 Add psbattletools-based /battlesearch alternative 2022-08-14 19:03:43 -07:00
Annika
e9d947b364 Fix type errors 2022-05-28 14:16:30 -07:00
Guangcong Luo
8642abcd12
Avatar manager (#8563) 2021-12-14 10:21:02 -08:00
Kris Johnson
40e36c8f38
Make adjustments to Section Leaders (#8387) 2021-07-16 12:51:29 -07:00
Kris Johnson
a1bdafbfe8
Add room sections (#8205) 2021-04-23 22:39:56 -07:00
Guangcong Luo
c46ee360a7 Give Hosts the forcewin permission
This allows groupchat tournament hosts, as well as `/importinputlog`
users, to use the `/forcewin` and `/editbattle` commands.

This started as just wanting to give `/editbattle reseed` to users of
`/importinputlog`, but in hindsight, all these permissions could be
useful and allow for more creative tournaments, so I'm opening it up
fully, and we'll see how everyone does with them.
2021-02-02 14:01:00 -08:00
Guangcong Luo
368e510a28 Add tournaments permission to admins
Fixes #7872
2021-01-06 11:18:56 -08:00
Guangcong Luo
fbdda144eb
Support Config.noguestsecurity (#7625)
This Config option, intended purely for development test servers,
allows users to log in without a signed token, by using
`/trn [USERNAME]`. This allows logins without a login server.

The rest of the server has been changed to make sure unregistered
users never have any powers they shouldn't have.
2020-11-05 04:55:05 -08:00
Mia
71dbb2f466
Support Config.nothrottle (#7637) 2020-11-05 04:52:04 -08:00
Mia
67ee30f2fd
Introduce Config.noipchecks (#7626) 2020-11-04 15:14:30 -08:00
Annika
38feadbbc2
Config: Move Bot rank below Driver (#7617) 2020-11-01 12:38:32 -08:00
Kris Johnson
57e3d7c185
Add The Studio chat plugin (#7542) 2020-10-24 14:09:43 -07:00
Guangcong Luo
0a117e2d68 Sync default permissions
config-example is now synced with the latest permissions in Main.
2020-09-18 21:04:31 -04:00
Kris Johnson
897ec75df9
Add the tournaments permission to bots
Bots need to manually have the tournaments permission because some rooms do not want drivers making tournaments, but there is currently no way to exclude driver while whitelisting bot with permissions.
2020-09-18 03:38:34 -06:00
Kris Johnson
dd494bb973
Tournaments: Modernize permission checking (#7375) 2020-09-16 03:40:15 -07:00
Annika
52aa7ece1e Fix Room Prize Winner rank 2020-09-10 19:22:51 -07:00
Kris Johnson
3c0d9f3d01 Allow Room Owners to promote users to Prize WInner 2020-09-09 21:41:49 -06:00
TheMezStrikes
b3e7ac1947
Let admins addhtml by default (#7342) 2020-09-09 17:47:20 -07:00
Annika
2f015dfd0e
Add a Room Prize Winner rank (#7256) 2020-09-09 12:25:48 -07:00
Guangcong Luo
15b7c0ad9f Don't install node-oom-heapdump by default 2020-08-15 17:46:28 -07:00
Annika
8287cbc7fb
Remove User#authAtLeast and add more sysop bypasses (#7046) 2020-08-06 00:12:30 -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
Annika
fc764aa8e2
Support requiring high-rated users to register (#7073) 2020-07-29 00:16:02 -07:00
TheMezStrikes
f1507fbc35
Set global bot permissions in groupchats to bot (#6993) 2020-07-11 18:41:15 -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
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
6c97866f83
Add commands to show media in chat (#6745) 2020-06-16 14:40:10 -07:00
Guangcong Luo
902dfaba4f Better document debug options in config-example.js 2020-06-13 15:58:35 -07:00
Guangcong Luo
d592c838c2 Separate Config.ofemain and Config.ofesockets 2020-06-12 22:02:32 -07:00
Mia
c246ae51b4
Support searching roomlog entries (#6494) 2020-05-25 18:22:51 -07:00
Mia
1628258371
Typescript chat-commands/core (#6484)
Also fix TS line numbers in GitHub Actions
2020-03-23 23:50:35 -07:00
Christopher Monsanto
4cb531e4a8
Add Config.startuphook (#6382)
This is called when the server is fully initialized and ready to serve
requests. Useful for notifying a process manager.
2020-02-22 15:51:18 -08:00
asgdf
e40d24fd5a Allow drivers to set modchat by default (#6152) 2019-12-16 14:28:05 +09:00
Waleed Hassan
a518cf102a Take steps to statically type Config (#5920)
This commit changes the TypeScript global variable of `Config` from
`AnyObject` to `Config & AnyObject`.

It still falls back to `AnyObject` (hence the 'Take steps') because of
the main-specific `Config` properties that are used without being in the
`Config` object itself.

These can be added by someone with access to the PS main server.

Regardlesss, this is an improvement as IntelliSense can display and
autocomplete the known properies.

In addition, the TypeScript compiler will now report bugs
concerning the types of the properties, which I have fixed in this
commit.
2019-10-30 18:45:20 +10:30
whales
d52e57eebd Prevent non-staff from seeing their own IPs (#5845) 2019-10-05 02:38:07 +10:00
Kirk Scheibelhut
4326aeae04
Add forcedpublicprefixes for public OLT battles (#5661) 2019-08-01 09:28:48 +02:00
Guangcong Luo
a3ba27ba8f Improve modchat
- Modchat permission code should be simpler now
- Mods now have 'modchatall' (can set modchat up to their own rank)
- 'modchatall' (ROs) can no longer remove modchat higher than their own
  rank
- 'makeroom' (Leaders) still can remove higher modchat
2019-07-20 08:53:16 -05:00
Kirk Scheibelhut
a61c10eeb8
Remove hardcoded URLs in favor of Config.routes (#5557) 2019-07-01 10:19:21 -07:00
Bär Halberkamp
ed5d534224
Add an AFK timer and status messages (#5002) 2019-07-01 01:47:13 +02:00
jetou
da32e5c4c2 Support requesting ties (#5454) 2019-05-23 17:42:34 +01:00
JetOU
c9e1aba256 Allow Players to /exportinputlog (#5457) 2019-04-20 22:34:28 +09:30
TheMezStrikes
0ac6e55adf Allow Room Owners to use addhtml (#5409) 2019-04-06 01:55:26 +08:00
urkerab
87ccf476c6 Allow SSL options to point to symlinks (#5018) 2018-12-10 07:14:19 -06:00
Guangcong Luo
228b67d712 Update config-example.js for TypeScript 2018-11-27 14:36:45 -06:00
Lycanium Z
8f73f39109 Prevent room and staff introductions in battles (#4942) 2018-11-18 22:00:12 -06:00