Skip to content

Basic c# Wrapper Around Nekos.life API For Kururu bot

Notifications You must be signed in to change notification settings

HedariKun/Nekos.Sharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nekos.Sharp

Nekos sharp is a wrapper that is used to get images from the service Nekos.life to get starting you need to implement the nameSpace

using Nekos.Sharp

to get Images you need to use the static Method GetImageAsync from NekoClient then you need to choose the image title you can choose from sfw and nsfw image

Examples

using System;
using System.Threading.Tasks;
using Nekos.Sharp;
using Nekos.Sharp.Responses;

namespace Example
{
   class Program
   {
       static async Task Main(string[] args)
       {
          /*
           For Nsfw Image Change SFWTypes To NSFWTypes
           NekoImg Data = await NekoClient.GetImageAsync(SFWTypes.Lewd);
          */
           NekoImg Data = await NekoClient.GetImageAsync(SFWTypes.Hug);
           Console.Write(Data.ImageURl);
           Console.ReadKey();
       }
   }
}

Why Object Example

using System;
using System.Threading.Tasks;
using Nekos.Sharp;
using Nekos.Sharp.Responses;

namespace Example
{
    class Program
    {
        static async Task Main(string[] args)
        {

            NekoWhy Data = await NekoClient.GetWhyAsync();
            Console.Write(Data.Why);
            Console.ReadKey();
        }
    }
}

Fact Object Example

using System;
using System.Threading.Tasks;
using Nekos.Sharp;
using Nekos.Sharp.Responses;

namespace Example
{
   class Program
   {
       static async Task Main(string[] args)
       {

           NekoFact Data = await NekoClient.GetFactAsync();
           Console.Write(Data.Fact);
           Console.ReadKey();
       }
   }
}

About

Basic c# Wrapper Around Nekos.life API For Kururu bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages