Commit Graph

45 Commits

Author SHA1 Message Date
Madeline 5ffa0a67f8 subscribe clients to member events when they lazy request members 2023-01-30 20:23:35 +11:00
Madeline c4599a87ce question mark. 2023-01-30 20:05:07 +11:00
Madeline 005aa8e52c Impl member lazy request (#970) 2023-01-30 19:57:00 +11:00
Madeline 45793e82fd Fix SIGTERM handler not disconnecting gateway clients and leaving timeouts active 2023-01-26 14:29:33 +11:00
Madeline 71082eb918 Add ESLint (#941)
* Add eslint, switch to lint-staged for precommit

* Fix all ESLint errors

* Update GH workflow to check prettier and eslint
2023-01-20 18:10:47 +11:00
Madeline abe967a8f3 Don't fetch the emoji owner in identify, as this causes mass-disconnects with large emoji counts.
TODO: Remove some additional emoji props from being sent (user_id for example)
2023-01-18 20:16:49 +11:00
Madeline b58cea7c41 Script to add license preamble to each file. Also, does that. (#935)
* Add script to automatically add license to each file

* Add license preamble to each file.

* Fix existing preamble detection breaking due to line endings. Git :(

* Prevent license from being added to code with other licenses
2023-01-18 13:05:49 +11:00
V3L0C1T13S 78df79df9d send GUILD_CREATE after READY event (#938)
* Fix lazy guilds being sent before READY event

* Make casing consistent
2023-01-17 15:44:29 +11:00
Madeline 5a46e486cb Fix dumping incoming messages 2023-01-13 13:49:58 +11:00
Madeline ff15dd8a9d Dont send sessions replace or presence update for unidentified users 2023-01-13 13:44:19 +11:00
TheArcaneBrony 1e1ba96a3c Dev/post refactor fixes (#927)
* Re-introduce outgoing message logging

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Websocket dumping

* Sentry user count on API

* Generate session ID upon opening websocket, fix gateway dumps

* Async file io in src/gateway/events/Message.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Async file io in src/util/util/Config.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Make pre-commit hook executable

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Fixed sync file io in src/util/util/Config.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Fixed missing await call in src/util/util/AutoUpdate.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Add comment to src/gateway/events/Connection.ts

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>

* Clean up gateway dumping code

Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
2023-01-12 23:46:36 +11:00
Madeline d4edfd8cbe Temp fix for DMs 2023-01-12 00:32:24 +11:00
Madeline 942aab7e02 https://discord.com/channels/806142446094385153/898197424340860928/1062404340427534446 2023-01-11 14:32:30 +11:00
Madeline 6755f1392d Move sentry init to util. use sentry in each module, not just bundle 2023-01-10 13:20:37 +11:00
Madeline f9ab60ce25 Add error handler for individual gateway sockets 2023-01-10 12:54:03 +11:00
Madeline fe3944322a Don't send private user data in ready event 2023-01-05 17:42:36 +11:00
Madeline a3f2f997a3 Prettier 2023-01-05 17:16:55 +11:00
Madeline b70f8fcf09 Merge pull request #922 from MaddyUnderStars/maddy/bodyParserPatch
Patch body-parser to use json-bigint, like gateway
2023-01-02 20:37:25 +11:00
Madeline d7460a198a Only send public user details in GUILD_MEMBER_LIST_UPDATE 2023-01-02 13:16:16 +11:00
Madeline 0fe03771ce Profile themes and pronouns 2022-12-31 17:51:57 +11:00
Madeline 6ca65a19f2 Add WS_LOGEVENTS and WS_VERBOSE env vars 2022-12-31 12:00:00 +11:00
Puyodead1 280a584aed Client: update to canary 165341 2022-12-20 23:25:20 -05:00
TheArcaneBrony 20359e7b9f Move UserSettings to own entity 2022-12-19 17:52:44 +11:00
Madeline 518fc966c9 Add additional config 2022-12-19 16:51:24 +11:00
TheArcaneBrony fefcb31135 Make ConfigValue a directory, move defaults to those classes instead of a separate object 2022-12-19 16:14:21 +11:00
ChrisChrome 1cadcda249 Add basic developer panel functionality - doesn't work yet
>
>
> Co-authored-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2022-12-18 22:40:25 +11:00
Madeline 9adce764e8 Add comment for 123 magic number 2022-12-17 19:50:30 +11:00
Madeline 37687dc8bd Remove fluent-ffmpeg dep. TODO: Merge puyo's PR 2022-12-17 19:33:51 +11:00
Madeline 631213b4ec Remove unneeded comments 2022-12-17 19:05:29 +11:00
Madeline 64596a7f3c Remove IP logging from gateway 2022-12-17 19:01:48 +11:00
Madeline 77fa7ac886 Remove bad banned words implementation 2022-12-17 18:45:42 +11:00
Madeline 9974b1a08e Premium tier 0 SKU from staging 2022-12-17 17:44:30 +11:00
Madeline 0d57ac8c36 Rewrite gateway message decoding 2022-10-31 20:49:32 +11:00
Madeline 9a7a43a725 Allow running api, cdn, gateway separately 2022-10-31 13:17:21 +11:00
Madeline de1cd70bec Add private_channels_version to client_state in identity. also set sentry user in gateway 2022-10-31 12:16:15 +11:00
Madeline 45aadf327d Sentry stuff? 2022-10-30 11:34:25 +11:00
Madeline 63c0fbf62c capture exception in sentry for embed processing 2022-10-04 15:43:01 +11:00
Madeline 2ccfd82de7 Remove user settings from GUILD_MEMBER_LIST_UPDATE response 2022-09-28 18:11:01 +10:00
Madeline 1bde83635c Missed some schemas 2022-09-28 16:39:05 +10:00
Madeline a6e6e1431d Bad check for if buffer is json string instead of gzip 2022-09-27 21:44:44 +10:00
Madeline 7b572f4591 Set tutorial to null 2022-09-27 19:30:20 +10:00
Madeline dbaf39237a Prettier 2022-09-26 22:41:21 +10:00
Madeline 1f416b972c Move schemas to /src/util/schemas 2022-09-26 22:08:14 +10:00
Madeline e700ab1e65 Add generate:client script 2022-09-26 20:33:57 +10:00
Madeline 0d23eaba09 Refactor to mono-repo + upgrade packages 2022-09-25 23:35:18 +10:00