Oh Linux
This commit is contained in:
@@ -69,19 +69,16 @@ namespace SysEx.Net
|
|||||||
return items[random.Next(0, items.Count)];
|
return items[random.Next(0, items.Count)];
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<WeebGif> GetWeebActionGifAsync(GifType type)
|
public async Task<string> GetWeebActionGifAsync(GifType type)
|
||||||
{
|
{
|
||||||
var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/get/actions/type/" + type + ".json"));
|
var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/actions/?action=" + type.ToString().ToLowerInvariant()));
|
||||||
var items = JsonConvert.DeserializeObject<IReadOnlyList<WeebGif>>(resp);
|
return resp;
|
||||||
return items[random.Next(0, items.Count)];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<WeebGif> GetWeebReactionGifAsync()
|
public async Task<string> GetWeebReactionGifAsync()
|
||||||
{
|
{
|
||||||
var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/get/reactions.json"));
|
var resp = await WebRequest.ReturnStringAsync(new Uri("https://api.systemexit.co.uk/reactions/"));
|
||||||
var items = JsonConvert.DeserializeObject<List<WeebGif>>(resp);
|
return resp;
|
||||||
if (items == null) return null;
|
|
||||||
return items[random.Next(0, items.Count)];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<string> GetLewdKitsuneAsync()
|
public async Task<string> GetLewdKitsuneAsync()
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||||
<Authors>exsersewo</Authors>
|
<Authors>exsersewo</Authors>
|
||||||
<Company />
|
<Company />
|
||||||
<PackageProjectUrl>https://github.com/exsersewo/SysEx.Net</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/exsersewo/SysEx.Net</PackageProjectUrl>
|
||||||
@@ -11,6 +11,11 @@
|
|||||||
<SignAssembly>false</SignAssembly>
|
<SignAssembly>false</SignAssembly>
|
||||||
<Description>A .Net Wrapper for utilties hosted at: https://api.systemexit.co.uk/ & https://kitsu.systemexit.co.uk/</Description>
|
<Description>A .Net Wrapper for utilties hosted at: https://api.systemexit.co.uk/ & https://kitsu.systemexit.co.uk/</Description>
|
||||||
<Copyright>exsersewo</Copyright>
|
<Copyright>exsersewo</Copyright>
|
||||||
|
<PackageReleaseNotes>Initial Release</PackageReleaseNotes>
|
||||||
|
<NeutralLanguage>en-GB</NeutralLanguage>
|
||||||
|
<RepositoryType>Library</RepositoryType>
|
||||||
|
<PackageLicenseUrl>https://github.com/exsersewo/SysEx.Net/blob/master/LICENSE</PackageLicenseUrl>
|
||||||
|
<Version>1.0.15</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|||||||
Reference in New Issue
Block a user