Removed old web ui plugin

This commit is contained in:
2024-08-31 17:27:19 +03:00
parent f7ba5f94ff
commit 30e92b742c
26 changed files with 117 additions and 620 deletions

View File

@@ -28,22 +28,30 @@ public class Program
await ConsoleInputHandler();
}
/// <summary>
/// The main loop for the discord bot
/// </summary>
private static async Task ConsoleInputHandler()
{
while (true)
{
var cmd = Console.ReadLine();
var args = cmd.Split(' ');
var cmd = Console.ReadLine();
if (cmd is null)
{
break;
}
var args = cmd.Split(' ');
if (args.Length == 0)
{
continue; // Skip empty command
}
var command = args[0];
args = args.Skip(1).ToArray();
if (args.Length == 0)
{
args = null;
}
await Application.CurrentApplication.InternalActionManager.Execute(command, args);
await Application.CurrentApplication.InternalActionManager.Execute(command, args);
}
}