geekbot/Geekbot.net/Lib/CatClient.cs

24 lines
459 B
C#
Raw Normal View History

2017-04-13 13:22:30 +02:00
using System;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using RestSharp;
namespace Geekbot.net.Modules
{
public interface ICatClient
{
IRestClient Client { get; set; }
}
public class CatClient : ICatClient
{
//Manage a restClient
public CatClient()
{
Client = new RestClient("http://random.cat");
}
public IRestClient Client { get; set; }
}
}