Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Cleaning up and iterations on style
Browse files Browse the repository at this point in the history
  • Loading branch information
Veld committed Mar 8, 2019
1 parent 5e55e0b commit c0e4e94
Show file tree
Hide file tree
Showing 45 changed files with 2,924 additions and 3,535 deletions.
2 changes: 1 addition & 1 deletion Miki.Bot.Models
2 changes: 1 addition & 1 deletion Miki.Framework
4 changes: 4 additions & 0 deletions Miki.UrbanDictionary/Miki.UrbanDictionary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>7.1</LangVersion>
<Authors>Velddev</Authors>
<Product>Miki</Product>
<Description>Urban dictionary api implementation.</Description>
<Version>0.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
57 changes: 0 additions & 57 deletions Miki/API/EmbedMenus/BaseItem.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Miki/API/EmbedMenus/CustomActionItem.cs

This file was deleted.

19 changes: 0 additions & 19 deletions Miki/API/EmbedMenus/IMenuItem.cs

This file was deleted.

49 changes: 0 additions & 49 deletions Miki/API/EmbedMenus/Menu.cs

This file was deleted.

80 changes: 0 additions & 80 deletions Miki/API/EmbedMenus/SubMenuItem.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Miki/API/Imageboards/Enums/ImageboardRating.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Miki.API.Imageboards.Enums
{
public enum ImageboardRating
public enum ImageRating
{
NONE,
SAFE,
Expand Down
8 changes: 4 additions & 4 deletions Miki/API/Imageboards/ImageboardPost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ImageboardProvider(ImageboardConfigurations config)
Config = config;
}

public virtual async Task<T> GetPostAsync(string content, ImageboardRating r)
public virtual async Task<T> GetPostAsync(string content, ImageRating r)
{
bool nsfw = false;
string[] command = content.Split(' ');
Expand All @@ -36,21 +36,21 @@ public virtual async Task<T> GetPostAsync(string content, ImageboardRating r)

switch (r)
{
case ImageboardRating.EXPLICIT:
case ImageRating.EXPLICIT:
{
tags.Add(Config.ExplicitTag);
nsfw = true;
}
break;

case ImageboardRating.QUESTIONABLE:
case ImageRating.QUESTIONABLE:
{
tags.Add(Config.QuestionableTag);
nsfw = true;
}
break;

case ImageboardRating.SAFE:
case ImageRating.SAFE:
{
tags.Add(Config.SafeTag);
}
Expand Down
Loading

0 comments on commit c0e4e94

Please sign in to comment.