From 047466ee0cc5c0c71394d9d45581989605689c51 Mon Sep 17 00:00:00 2001 From: exsersewo Date: Sun, 12 Aug 2018 18:20:06 +0100 Subject: [PATCH] Oh Linux --- SysEx.Net/Client.cs | 15 ++++++--------- SysEx.Net/SysEx.Net.csproj | 7 ++++++- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/SysEx.Net/Client.cs b/SysEx.Net/Client.cs index 425b5dc..ab991fb 100644 --- a/SysEx.Net/Client.cs +++ b/SysEx.Net/Client.cs @@ -69,19 +69,16 @@ namespace SysEx.Net return items[random.Next(0, items.Count)]; } - public async Task GetWeebActionGifAsync(GifType type) + public async Task GetWeebActionGifAsync(GifType type) { - var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/get/actions/type/" + type + ".json")); - var items = JsonConvert.DeserializeObject>(resp); - return items[random.Next(0, items.Count)]; + var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/actions/?action=" + type.ToString().ToLowerInvariant())); + return resp; } - public async Task GetWeebReactionGifAsync() + public async Task GetWeebReactionGifAsync() { - var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/get/reactions.json")); - var items = JsonConvert.DeserializeObject>(resp); - if (items == null) return null; - return items[random.Next(0, items.Count)]; + var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/reactions/")); + return resp; } public async Task GetLewdKitsuneAsync() diff --git a/SysEx.Net/SysEx.Net.csproj b/SysEx.Net/SysEx.Net.csproj index e0ea1ec..5af1207 100644 --- a/SysEx.Net/SysEx.Net.csproj +++ b/SysEx.Net/SysEx.Net.csproj @@ -2,7 +2,7 @@ netstandard2.0 - true + false exsersewo https://github.com/exsersewo/SysEx.Net @@ -11,6 +11,11 @@ false A .Net Wrapper for utilties hosted at: https://api.systemexit.co.uk/ & https://kitsu.systemexit.co.uk/ exsersewo + Initial Release + en-GB + Library + https://github.com/exsersewo/SysEx.Net/blob/master/LICENSE + 1.0.15