You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
failed_request="Request failed. Please try again later."
504
+
error="Error occurred Please try again later."
501
505
502
506
ifnotTIMELINE_CHANNEL:
503
507
awaitinteraction.followup.send("Timeline feature is not configured.", ephemeral=True)
504
508
return
505
509
506
510
channel=self.bot.get_channel(TIMELINE_CHANNEL)
507
511
508
-
ifprocessed_timeline=="Not relevant":
509
-
awaitinteraction.followup.send("Your description was not relevant!", ephemeral=True)
512
+
sys_msg=None
513
+
514
+
ifprocessed_timeline==not_relevant:
515
+
awaitinteraction.followup.send(
516
+
"Your description was not relevant!",
517
+
ephemeral=True,
518
+
)
519
+
sys_msg=f"{self.username} has tried to add a process timeline for a company but the description was not relevant. Original timeline: {timeline}."
520
+
elifprocessed_timeline==failed_request:
521
+
awaitinteraction.followup.send(
522
+
"Request failed. Please try again later.",
523
+
ephemeral=True,
524
+
)
525
+
sys_msg=f"{self.username} has tried to add a process timeline for a company but the Gemini request failed. Oringinal timeline: {timeline}. Processed timeline: {processed_timeline}."
526
+
527
+
elifprocessed_timeline==error:
528
+
awaitinteraction.followup.send(
529
+
"Error occurred. Please try again later.",
530
+
ephemeral=True,
531
+
)
532
+
sys_msg=f"{self.username} has tried to add a process timeline for a company but an error occurred. Original timeline: {timeline}. Processed timeline: {processed_timeline}."
533
+
534
+
elifprocessed_timeline!=timeline:
535
+
awaitinteraction.followup.send(
536
+
"Processing failed. Please try again later.", ephemeral=True
537
+
)
538
+
sys_msg=f"{self.username} has tried to add a process timeline for a company but the processed output was not the timeline. Original timeline: {timeline}. Processed timeline: {processed_timeline}."
539
+
540
+
ifsys_msg:
541
+
awaitself.bot_context.log(interaction, sys_msg)
510
542
return
511
543
512
544
embed=discord.Embed(title=f"Process for {company_name}", color=discord.Color.blue())
0 commit comments