Commit graph

35 commits

Author SHA1 Message Date
Madpeter
27d5e29487 Refactor KnownAvatar into helper methods
Extract avatar lookup logic from KnownAvatar into three methods: SyncAvatarsHashMap (sync local avatar map), KnownAvatarUUID (check by UUID via UUIDNameReply), and KnownAvatarName (check by display name via AvatarPickerReply). Reworked KnownAvatar to call SyncAvatarsHashMap and then validate using the new helpers, returning false for UUID.Zero and avoiding the previous always-true outcome. Preserves event subscription/teardown and timeout waits while clarifying visibility (protected helpers, public KnownAvatar) and cleaning up callback logic.
2026-02-05 22:18:20 +00:00
Madpeter
050ef3c133 Replace Newtonsoft.Json with System.Text.Json
Migrated all serialization and deserialization from Newtonsoft.Json to System.Text.Json across the codebase for improved performance and reduced dependencies. Updated package references and refactored helper method names for consistency (e.g., IsEmpty, NotEmpty, InRange). Also updated NuGet package versions in project files.
2025-10-03 23:12:20 +01:00
Madpeter
93dbde2818 Improve inventory preload tracking and reporting
Refactored inventory preload logic to track both folder and item counts, and updated related command and service methods to report these values. Changed folder loading to be asynchronous and recursive, improved reporting format, and fixed root folder naming in inventory contents command.
2025-10-03 21:56:33 +01:00
Madpeter
70c1dcc86c Add randomized delay to folder preloading
Replaced fixed delay with a randomized delay when preloading folders to reduce predictability and overloading the server with multiple requests at the same time Introduced a static Random instance for delay calculation.
2025-10-03 00:58:14 +01:00
Madpeter
91a1ba4086 Add inventory preload status and folder count commands
Introduces two new commands to check if inventory preload is done and to request the number of preloaded folders. Updates inventory node mapping to use dynamic type names and improves folder preload tracking in DataStoreService.
2025-10-03 00:50:54 +01:00
Madpeter
c00a11a99d Add inventory prefetching support
Introduces configuration options and logic for prefetching inventory folders on startup, including depth control. Updates Dockerfile and DataStoreConfig to support new settings, and modifies DataStoreService to handle inventory preloading asynchronously.
2025-10-02 11:22:19 +01:00
Madpeter
851328c74e improve relay and datastore
datastore can now prefetch display names (note the first time it sees a avatar the display name will be ?)
the relay service can now talk to rabbit as a target
the relay service can now use an extended output json
2025-07-10 00:27:55 +01:00
Madpeter
b5b7a9fac6 update libmeta 2025-06-18 16:41:48 +01:00
Madpeter
bc5ca85489 cleanup and CommandHistoryLogResults 2025-02-12 20:25:52 +00:00
Madpeter
41272be55a adjust how the bot deals with DC events 2024-10-21 03:35:03 +01:00
Madpeter
c9d4011760 improve Interaction service with controllable access levels and one time accepts
4 new env values for interaction and 2 new commands
2024-08-25 12:17:20 +01:00
Madpeter
74f0ef29a8 adds 4 new commands for avatar levels
GetProfileImage, SetProfileImage, GetProfileAbout, SetProfileAbout
2024-08-23 14:08:13 +01:00
Madpeter
e43dbcabc8 fixs
correct ResetAnimations, allow stand to call reset animations, fix start service, add a delay on startup
2024-08-15 16:53:11 +01:00
Madpeter
70d12c08d9 Update DataStoreService.cs 2024-08-08 16:24:15 +01:00
Madpeter
bb5b1b98b2 adds FriendsGetLocation 2024-08-08 16:22:18 +01:00
Madpeter
9987d7fcb1 allow limited service control via the command interface 2024-07-22 20:19:48 +01:00
Madpeter
c68dfc20d0 expose the AddAvatar function so other systems can add 2024-06-30 02:09:31 +01:00
Madpeter
b8c482e5a9 offline IM support 2024-06-28 05:30:46 +01:00
Madpeter
b40b2d5b48 fix issues with chat fetching 2024-06-27 11:42:20 +01:00
Madpeter
25ebadc39b rlv 2023-12-01 15:20:19 +00:00
Madpeter
e5c6ced9b0 HideStatusOutput support 2023-12-01 09:50:55 +00:00
Madpeter
deac2c4387 Update DataStoreService.cs 2023-11-30 23:48:12 +00:00
Madpeter
45fdca1896 wip 2023-07-25 20:43:16 +01:00
Madpeter
4b37fbb352 cleanup start messages 2023-07-23 16:07:10 +01:00
Madpeter
59b768f1b1 update lib meta and cleanup 2023-07-23 14:13:32 +01:00
Madpeter
22cc7e8b88 update docker file and tweak services 2022-11-29 21:25:09 +00:00
Madpeter
befca0b46d Update DataStoreService.cs 2022-09-22 01:59:00 +01:00
Madpeter
434d772705 on Events support 2022-09-21 19:47:28 +01:00
Madpeter
458afc7508 add GetIsGroup 2022-06-08 03:00:08 +01:00
Madpeter
dbd2ea32e4 more wip 2022-06-04 07:52:06 +01:00
Madpeter
84e53eb10e correct issue with teleports not locking homebound correctly 2022-06-02 17:56:37 +01:00
Madpeter
745977b1b4 Cleanup of services and new homebound service [replaces at home] 2022-06-02 07:24:47 +01:00
Madpeter
a3173dcac8 commands remove tokens 2022-05-30 05:30:15 +01:00
Madpeter
feacb83182 wip 2022-05-29 23:08:34 +01:00
Madpeter
a5851c5fe1 new data store for chat, groups and avaters 2022-05-29 17:38:28 +01:00