From bbf0d19e3de9583960178bdba3ce0c2ae9da06c8 Mon Sep 17 00:00:00 2001 From: "scoopala7.tngl.sh" Date: Tue, 16 Jun 2026 13:16:48 -0700 Subject: [PATCH] make error messages better solves issue 1: https://tangled.org/scoopala7.tngl.sh/byte/issues/1 --- cogs/utils.py | 2 +- main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/utils.py b/cogs/utils.py index dd4f906..ec53c86 100644 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -32,7 +32,7 @@ async def timestamp_command(interaction, date: str): try: timestamp = string_to_time_tuple(date) except Exception: - await interaction.response.send("Oops! Looks like you didn't type the required fields.") + await interaction.response.send("Oops! Looks like an error occured...\nTry checking your inputs over again?") return timestamp = calendar.timegm(timestamp) text = '\n'.join([ diff --git a/main.py b/main.py index 7a3d503..aef969f 100644 --- a/main.py +++ b/main.py @@ -41,9 +41,9 @@ def run(): text = ''.join(trace) print(text) if interaction.responded: - await interaction.response.followup('Sorry, an error has occurred (after responding).') + await interaction.response.followup('An error occured in a followup message... ') else: - await interaction.response.send('Sorry, an error has occurred.') + await interaction.response.send('An error occured...') await error_log_webhook.send(text[:2000]) # Set bot started at timestamp -- 2.51.2