From b64e2471fa7fdca5bb925c54eaa9adee78a19e5d Mon Sep 17 00:00:00 2001 From: imcompiling Date: Fri, 2 Aug 2024 16:23:35 -0400 Subject: [PATCH] Prevent double period. --- cogs/commands/record.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/commands/record.py b/cogs/commands/record.py index cd2f1a3..5e9f1c9 100644 --- a/cogs/commands/record.py +++ b/cogs/commands/record.py @@ -140,7 +140,9 @@ class RecordCog(commands.Cog, name="Record Commands"): self.bot.config.params.event_post_channel_id ) - msg = f"<@{interaction.user.id}> has given {recipient_str} points for the {activity} activity. Justification: {justification}." # noqa: E501 + msg = f"<@{interaction.user.id}> has given {recipient_str} points for the {activity} activity. Justification: {justification}" # noqa: E501 + if not msg.endswith("."): + msg += "." await event_channel.send(msg) await interaction.response.send_message("Point has been added.", ephemeral=True)