Format Python code with psf/black push

github-actions 2 years ago
parent f68f669ef7
commit 21a304a873

@ -522,7 +522,9 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"):
try:
# Check if the user's name contains any characters that aren't alphanumeric or spaces
if not re.match("^[a-zA-Z0-9 ]*$", ctx.author.name):
raise AttributeError("User's name contains invalid characters. Cannot set the conversation name to their name.")
raise AttributeError(
"User's name contains invalid characters. Cannot set the conversation name to their name."
)
new_prompt = new_prompt.replace("Human:", ctx.author.name + ":")
except AttributeError:
pass

Loading…
Cancel
Save