From 11cd70be93fa6968123e8c2c0761f5c95cdb9aa4 Mon Sep 17 00:00:00 2001 From: AllfatherHatt Date: Tue, 25 Feb 2025 22:04:42 +0100 Subject: [PATCH] fixing typo --- reginaldCog/reginald.py | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/reginaldCog/reginald.py b/reginaldCog/reginald.py index 8490bd6..be0b637 100644 --- a/reginaldCog/reginald.py +++ b/reginaldCog/reginald.py @@ -265,30 +265,15 @@ class ReginaldCog(commands.Cog): error_message = f"OpenAI Error: {e}" print(f"🛠️ DEBUG: {error_message}") # Log error to console - reginald_responses = [ - f"Regrettably, I must inform you that I have encountered a bureaucratic obstruction whilst attempting to summarize:\n\n + reginald_responses = [ + f"Regrettably, I must inform you that I have encountered a bureaucratic obstruction whilst attempting to summarize:\n\n{error_message}", + f"It would seem that a most unfortunate technical hiccup has befallen my faculties in the matter of summarization:\n\n{error_message}", + f"Ah, it appears I have received an urgent memorandum stating that my summarization efforts have been thwarted:\n\n{error_message}", + f"I regret to inform you that my usual eloquence is presently obstructed by an unforeseen complication while summarizing:\n\n{error_message}" + ] -{error_message} + return random.choice(reginald_responses) -", - f"It would seem that a most unfortunate technical hiccup has befallen my faculties in the matter of summarization:\n\n - -{error_message} - -", - f"Ah, it appears I have received an urgent memorandum stating that my summarization efforts have been thwarted:\n\n - -{error_message} - -", - f"I regret to inform you that my usual eloquence is presently obstructed by an unforeseen complication while summarizing:\n\n - -{error_message} - -" - ] - - return random.choice(reginald_responses)