Doing a lot of overhaul to add reminders
This commit is contained in:
@@ -14,7 +14,7 @@ class ConfirmView(View):
|
||||
# Attempt to remove the project
|
||||
try:
|
||||
await remove_project(self.project_id)
|
||||
await interaction.response.edit_message(content=f"Project ID {self.project_id} and all associated tasks have been successfully removed.", view=None)
|
||||
await interaction.response.edit_message(content=f"Alright hun, I have completely forgotten about the Project by the ID of {self.project_id} and all associated tasks have been successfully removed.", view=None)
|
||||
logger.info(f"Project ID {self.project_id} and all associated tasks removed successfully.")
|
||||
except Exception as e:
|
||||
error_message = f"Failed to remove the project. Error: {e}"
|
||||
@@ -24,7 +24,7 @@ class ConfirmView(View):
|
||||
|
||||
@discord.ui.button(label="Cancel", style=discord.ButtonStyle.secondary)
|
||||
async def cancel(self, interaction: discord.Interaction, button: Button):
|
||||
await interaction.response.edit_message(content="Project removal cancelled.", view=None)
|
||||
await interaction.response.edit_message(content="I see you changed your mind! I won't forgot the project after all..", view=None)
|
||||
self.stop()
|
||||
|
||||
class ConfirmTaskDeletionView(View):
|
||||
@@ -38,7 +38,7 @@ class ConfirmTaskDeletionView(View):
|
||||
# Attempt to remove the task
|
||||
try:
|
||||
await remove_task(self.task_id)
|
||||
await interaction.response.edit_message(content=f"Task ID {self.task_id} has been successfully removed.", view=None)
|
||||
await interaction.response.edit_message(content=f"Okay, I have completely forgotten about the Task by the ID {self.task_id}, and it has been successfully removed.", view=None)
|
||||
logger.info(f"Task ID {self.task_id} removed successfully.")
|
||||
except Exception as e:
|
||||
error_message = f"Failed to remove the task. Error: {e}"
|
||||
@@ -47,5 +47,5 @@ class ConfirmTaskDeletionView(View):
|
||||
|
||||
@discord.ui.button(label="Cancel", style=discord.ButtonStyle.secondary)
|
||||
async def cancel(self, interaction: discord.Interaction, button: Button):
|
||||
await interaction.response.edit_message(content="Task removal cancelled.", view=None)
|
||||
await interaction.response.edit_message(content="Wait! I see you changed your mind! I won't forgot the task after all..", view=None)
|
||||
self.stop()
|
Reference in New Issue
Block a user