diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index fb1bdc7..7eb4b4b 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -1113,6 +1113,10 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): user = ctx.user prompt = prompt.strip() + # If the prompt isn't empty and the last character isn't a punctuation character, add a period. + if prompt and prompt[-1] not in [".", "!", "?"]: + prompt += "." + user_api_key = None if USER_INPUT_API_KEYS: user_api_key = await GPT3ComCon.get_user_api_key(user.id, ctx)