mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Create ClckRuAPI.cs
This commit is contained in:
parent
5eea7441b7
commit
b7b242cff1
1 changed files with 29 additions and 0 deletions
29
MinecraftClient/config/ChatBots/ClckRuAPI.cs
Normal file
29
MinecraftClient/config/ChatBots/ClckRuAPI.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue