linux updater

This commit is contained in:
2023-01-10 19:42:10 +02:00
parent 1683234376
commit 22f2cd4e59
11 changed files with 67 additions and 109 deletions

View File

@@ -108,12 +108,11 @@ internal class Boot
await cmd.DeleteAsync();*/
}
private async Task Ready()
private Task Ready()
{
Console.Title = "ONLINE";
isReady = true;
return Task.CompletedTask;
}
private Task LoggedIn()

View File

@@ -44,7 +44,7 @@ internal class CommandHandler
await commandService.AddModulesAsync(Assembly.GetEntryAssembly(), null);
}
private async Task Client_SlashCommandExecuted(SocketSlashCommand arg)
private Task Client_SlashCommandExecuted(SocketSlashCommand arg)
{
try
{
@@ -52,7 +52,8 @@ internal class CommandHandler
.Where(p => p.Name == arg.Data.Name)
.FirstOrDefault();
if (plugin is null) throw new Exception("Failed to run command. !");
if (plugin is null)
throw new Exception("Failed to run command. !");
if (arg.Channel is SocketDMChannel)
@@ -66,6 +67,8 @@ internal class CommandHandler
ex.WriteErrFile();
}
return Task.CompletedTask;
}
/// <summary>