Create ClckRuAPI.cs

This commit is contained in:
Рома Данилов 2020-07-07 15:33:02 +05:00 committed by ORelio
parent 5eea7441b7
commit b7b242cff1

View file

@ -0,0 +1,29 @@
//MCCScript 1.0
//using System.Threading.Tasks;
MCC.LoadBot(new ClckRuAPIBot());
//MCCScript Extensions
public class ClckRuAPIBot : ChatBot
{
private PayKassaSCI clckapi { get; set; }
public ClckRuAPIBot()
{
clckapi = new ClckRuAPI();
}
}
internal class ClckRuAPI
{
public string ToCutURl(string url)
{
WebClient webClient = new WebClient();
string done = webClient.DownloadString("https://clck.ru/--?url=" + url);
return done;
}
}