From 3a57fa1e02fffdabef03a330f48fe3d29a7bff14 Mon Sep 17 00:00:00 2001 From: Toastie Date: Fri, 27 Dec 2024 16:53:40 +1300 Subject: [PATCH] Updated log error message --- Commands/AddCategoryCommand.cs | 2 +- Commands/AddCommand.cs | 2 +- Commands/AddMessageCommand.cs | 2 +- Commands/AddStaffCommand.cs | 2 +- Commands/AdminCommands.cs | 6 +++--- Commands/AssignCommand.cs | 2 +- Commands/BlacklistCommand.cs | 2 +- Commands/CloseCommand.cs | 2 +- Commands/CreateButtonPanelCommand.cs | 2 +- Commands/CreateSelectionBoxPanelCommand.cs | 2 +- Commands/InterviewCommands.cs | 4 ++-- Commands/InterviewTemplateCommands.cs | 4 ++-- Commands/MoveCommand.cs | 2 +- Commands/NewCommand.cs | 2 +- Commands/RandomAssignCommand.cs | 2 +- Commands/RemoveCategoryCommand.cs | 2 +- Commands/RemoveMessageCommand.cs | 2 +- Commands/RemoveStaffCommand.cs | 2 +- Commands/SayCommand.cs | 2 +- Commands/SetSummaryCommand.cs | 2 +- Commands/ToggleActiveCommand.cs | 2 +- Commands/TranscriptCommand.cs | 2 +- Commands/UnassignCommand.cs | 2 +- Commands/UnblacklistCommand.cs | 2 +- 24 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Commands/AddCategoryCommand.cs b/Commands/AddCategoryCommand.cs index ac258b4..9d92f8b 100644 --- a/Commands/AddCategoryCommand.cs +++ b/Commands/AddCategoryCommand.cs @@ -89,7 +89,7 @@ public class AddCategoryCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/AddCommand.cs b/Commands/AddCommand.cs index 9bcd74c..aaf5ecc 100644 --- a/Commands/AddCommand.cs +++ b/Commands/AddCommand.cs @@ -78,7 +78,7 @@ public class AddCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } catch (Exception) diff --git a/Commands/AddMessageCommand.cs b/Commands/AddMessageCommand.cs index 0b7578a..3eb0bde 100644 --- a/Commands/AddMessageCommand.cs +++ b/Commands/AddMessageCommand.cs @@ -69,7 +69,7 @@ public class AddMessageCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/AddStaffCommand.cs b/Commands/AddStaffCommand.cs index c4e4d03..8242671 100644 --- a/Commands/AddStaffCommand.cs +++ b/Commands/AddStaffCommand.cs @@ -70,7 +70,7 @@ public class AddStaffCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/AdminCommands.cs b/Commands/AdminCommands.cs index 9cf1756..3c63da5 100644 --- a/Commands/AdminCommands.cs +++ b/Commands/AdminCommands.cs @@ -56,7 +56,7 @@ public class AdminCommands } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } @@ -137,7 +137,7 @@ public class AdminCommands } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } else @@ -172,7 +172,7 @@ public class AdminCommands } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } Logger.Log("Reloading bot..."); diff --git a/Commands/AssignCommand.cs b/Commands/AssignCommand.cs index d619d7f..6a18220 100644 --- a/Commands/AssignCommand.cs +++ b/Commands/AssignCommand.cs @@ -108,7 +108,7 @@ public class AssignCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/BlacklistCommand.cs b/Commands/BlacklistCommand.cs index 2dfb18d..93c2646 100644 --- a/Commands/BlacklistCommand.cs +++ b/Commands/BlacklistCommand.cs @@ -47,7 +47,7 @@ public class BlacklistCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } catch (Exception) diff --git a/Commands/CloseCommand.cs b/Commands/CloseCommand.cs index ea569c1..0e13a84 100644 --- a/Commands/CloseCommand.cs +++ b/Commands/CloseCommand.cs @@ -105,7 +105,7 @@ public class CloseCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } if (Config.closingNotifications) diff --git a/Commands/CreateButtonPanelCommand.cs b/Commands/CreateButtonPanelCommand.cs index b857c75..a24b78f 100644 --- a/Commands/CreateButtonPanelCommand.cs +++ b/Commands/CreateButtonPanelCommand.cs @@ -62,7 +62,7 @@ public class CreateButtonPanelCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/CreateSelectionBoxPanelCommand.cs b/Commands/CreateSelectionBoxPanelCommand.cs index c87e3fa..c72a4b4 100644 --- a/Commands/CreateSelectionBoxPanelCommand.cs +++ b/Commands/CreateSelectionBoxPanelCommand.cs @@ -40,7 +40,7 @@ public class CreateSelectionBoxPanelCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } diff --git a/Commands/InterviewCommands.cs b/Commands/InterviewCommands.cs index fb5ae12..83c4742 100644 --- a/Commands/InterviewCommands.cs +++ b/Commands/InterviewCommands.cs @@ -60,7 +60,7 @@ public class InterviewCommands } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } @@ -122,7 +122,7 @@ public class InterviewCommands } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/InterviewTemplateCommands.cs b/Commands/InterviewTemplateCommands.cs index 9505475..f72b66d 100644 --- a/Commands/InterviewTemplateCommands.cs +++ b/Commands/InterviewTemplateCommands.cs @@ -179,7 +179,7 @@ public class InterviewTemplateCommands } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } catch (Exception e) @@ -253,7 +253,7 @@ public class InterviewTemplateCommands } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/MoveCommand.cs b/Commands/MoveCommand.cs index 28fdc1b..b8880de 100644 --- a/Commands/MoveCommand.cs +++ b/Commands/MoveCommand.cs @@ -120,7 +120,7 @@ public class MoveCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/NewCommand.cs b/Commands/NewCommand.cs index b266345..c2e07ad 100644 --- a/Commands/NewCommand.cs +++ b/Commands/NewCommand.cs @@ -253,7 +253,7 @@ public class NewCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } return (true, "Ticket opened, " + member.Mention + "!\n" + ticketChannel.Mention); diff --git a/Commands/RandomAssignCommand.cs b/Commands/RandomAssignCommand.cs index 825c0ef..4a5501b 100644 --- a/Commands/RandomAssignCommand.cs +++ b/Commands/RandomAssignCommand.cs @@ -85,7 +85,7 @@ public class RandomAssignCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } diff --git a/Commands/RemoveCategoryCommand.cs b/Commands/RemoveCategoryCommand.cs index efc2b40..9ce98bb 100644 --- a/Commands/RemoveCategoryCommand.cs +++ b/Commands/RemoveCategoryCommand.cs @@ -55,7 +55,7 @@ public class RemoveCategoryCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/RemoveMessageCommand.cs b/Commands/RemoveMessageCommand.cs index 112ed41..de602b9 100644 --- a/Commands/RemoveMessageCommand.cs +++ b/Commands/RemoveMessageCommand.cs @@ -54,7 +54,7 @@ public class RemoveMessageCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/RemoveStaffCommand.cs b/Commands/RemoveStaffCommand.cs index d94d9dd..0fda411 100644 --- a/Commands/RemoveStaffCommand.cs +++ b/Commands/RemoveStaffCommand.cs @@ -52,7 +52,7 @@ public class RemoveStaffCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/SayCommand.cs b/Commands/SayCommand.cs index 7bf8008..2e0d823 100644 --- a/Commands/SayCommand.cs +++ b/Commands/SayCommand.cs @@ -53,7 +53,7 @@ public class SayCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } diff --git a/Commands/SetSummaryCommand.cs b/Commands/SetSummaryCommand.cs index 20e5851..953b770 100644 --- a/Commands/SetSummaryCommand.cs +++ b/Commands/SetSummaryCommand.cs @@ -58,7 +58,7 @@ public class SetSummaryCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/ToggleActiveCommand.cs b/Commands/ToggleActiveCommand.cs index b5848e6..adec888 100644 --- a/Commands/ToggleActiveCommand.cs +++ b/Commands/ToggleActiveCommand.cs @@ -81,7 +81,7 @@ public class ToggleActiveCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/TranscriptCommand.cs b/Commands/TranscriptCommand.cs index dbc1449..b549531 100644 --- a/Commands/TranscriptCommand.cs +++ b/Commands/TranscriptCommand.cs @@ -102,7 +102,7 @@ public class TranscriptCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } try diff --git a/Commands/UnassignCommand.cs b/Commands/UnassignCommand.cs index c69c1bd..b73772e 100644 --- a/Commands/UnassignCommand.cs +++ b/Commands/UnassignCommand.cs @@ -58,7 +58,7 @@ public class UnassignCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } } \ No newline at end of file diff --git a/Commands/UnblacklistCommand.cs b/Commands/UnblacklistCommand.cs index 30cb3b4..c3fb0ce 100644 --- a/Commands/UnblacklistCommand.cs +++ b/Commands/UnblacklistCommand.cs @@ -46,7 +46,7 @@ public class UnblacklistCommand } catch (NotFoundException) { - Logger.Error("Could not find the log channel."); + Logger.Error("Could not send message in log channel."); } } catch (Exception)