I hate copy pasting
This commit is contained in:
parent
11cd70be93
commit
c37269e9ea
@ -264,13 +264,13 @@ class ReginaldCog(commands.Cog):
|
|||||||
except OpenAIError as e:
|
except OpenAIError as e:
|
||||||
error_message = f"OpenAI Error: {e}"
|
error_message = f"OpenAI Error: {e}"
|
||||||
print(f"🛠️ DEBUG: {error_message}") # Log error to console
|
print(f"🛠️ DEBUG: {error_message}") # Log error to console
|
||||||
|
|
||||||
reginald_responses = [
|
reginald_responses = [
|
||||||
f"Regrettably, I must inform you that I have encountered a bureaucratic obstruction whilst attempting to summarize:\n\n{error_message}",
|
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"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"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}"
|
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)
|
return random.choice(reginald_responses)
|
||||||
|
|
||||||
@ -363,26 +363,10 @@ class ReginaldCog(commands.Cog):
|
|||||||
except OpenAIError as e:
|
except OpenAIError as e:
|
||||||
error_message = f"OpenAI Error: {e}"
|
error_message = f"OpenAI Error: {e}"
|
||||||
reginald_responses = [
|
reginald_responses = [
|
||||||
f"Regrettably, I must inform you that I have encountered a bureaucratic obstruction:\n\n
|
f"Regrettably, I must inform you that I have encountered a bureaucratic obstruction:\n\n{error_message}",
|
||||||
|
f"It would seem that a most unfortunate technical hiccup has befallen my faculties:\n\n{error_message}",
|
||||||
{error_message}
|
f"Ah, it appears I have received an urgent memorandum stating:\n\n{error_message}",
|
||||||
|
f"I regret to inform you that my usual eloquence is presently obstructed by an unforeseen complication:\n\n{error_message}"
|
||||||
",
|
|
||||||
f"It would seem that a most unfortunate technical hiccup has befallen my faculties:\n\n
|
|
||||||
|
|
||||||
{error_message}
|
|
||||||
|
|
||||||
",
|
|
||||||
f"Ah, it appears I have received an urgent memorandum stating:\n\n
|
|
||||||
|
|
||||||
{error_message}
|
|
||||||
|
|
||||||
",
|
|
||||||
f"I regret to inform you that my usual eloquence is presently obstructed by an unforeseen complication:\n\n
|
|
||||||
|
|
||||||
{error_message}
|
|
||||||
|
|
||||||
"
|
|
||||||
]
|
]
|
||||||
return random.choice(reginald_responses)
|
return random.choice(reginald_responses)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user