diff --git a/PLRPC/LighthouseClient.cs b/PLRPC/LighthouseClient.cs index 969ae64..e334dbe 100644 --- a/PLRPC/LighthouseClient.cs +++ b/PLRPC/LighthouseClient.cs @@ -68,7 +68,7 @@ private async void UpdatePresence() { slot = new Slot { - IconHash = "default_icon", + IconHash = "e6bb64f5f280ce07fdcf4c63e25fa8296c73ec29", }; } @@ -99,9 +99,9 @@ private async void UpdatePresence() State = userStatus, Assets = new Assets { - LargeImageKey = this.serverUrl + "/gameAssets" + slot.IconHash, + LargeImageKey = this.serverUrl + "/gameAssets/" + slot.IconHash, LargeImageText = slot.Name, - SmallImageKey = this.serverUrl + "/gameAssets" + user.YayHash, + SmallImageKey = this.serverUrl + "/gameAssets/" + user.YayHash, SmallImageText = user.Username, }, Timestamps = new Timestamps diff --git a/PLRPC/Program.cs b/PLRPC/Program.cs index f75861f..3de79ea 100644 --- a/PLRPC/Program.cs +++ b/PLRPC/Program.cs @@ -11,7 +11,6 @@ namespace LBPUnion.PLRPC; public static class Program { - public static async Task Main(string[] args) { #if !DEBUG @@ -116,5 +115,4 @@ public static async Task Main(string[] args) await lighthouseClient.StartUpdateLoop(); } - } diff --git a/PLRPC/Types/ApiRepositoryImpl.cs b/PLRPC/Types/ApiRepositoryImpl.cs index 1c7452b..36ad530 100644 --- a/PLRPC/Types/ApiRepositoryImpl.cs +++ b/PLRPC/Types/ApiRepositoryImpl.cs @@ -29,12 +29,12 @@ private bool GetFromCache(IReadOnlyDictionary cache, T1 val = entry.Item1; return true; - } + } public async Task GetUser(string username) { if (this.GetFromCache(this.userCache, username, out User? cachedUser)) return cachedUser; - + string userJson = await this.httpClient.GetStringAsync($"username/{username}"); User? user = JsonSerializer.Deserialize(userJson); if (user == null) return null; diff --git a/PLRPC/Updater.cs b/PLRPC/Updater.cs index f2ac6cf..d78d787 100644 --- a/PLRPC/Updater.cs +++ b/PLRPC/Updater.cs @@ -7,7 +7,7 @@ namespace LBPUnion.PLRPC; public class Updater { private readonly HttpClient updaterHttpClient; - + public Updater(HttpClient updaterClient) { this.updaterHttpClient = updaterClient;