Initial commit

This commit is contained in:
Stone_Red
2022-01-26 15:25:34 +01:00
commit 81dd31b9f3
9 changed files with 517 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
using Commander_Net;
Console.WriteLine("Hello, World!");
Commander commander = new Commander();
Command sayCommand = commander.Register(HahaYes, "say", "tell");
sayCommand.Register(HahaYesSub, "kek");
commander.Register(HahaNo, "scream", "yell");
commander.Register((args) => Console.Clear(), "clear");
while (true)
{
if (!commander.Execute(Console.ReadLine()!))
{
Console.WriteLine("Command not found!");
}
}
void HahaYes(string yes)
{
Console.WriteLine($">>> {yes}");
}
void HahaYesSub(string yes)
{
Console.WriteLine($">>> {yes} xD");
}
void HahaNo(string no)
{
Console.WriteLine($">>> {no.ToUpper()}");
}