From 64c11f687836482d811a5831ad5685ea15e874d1 Mon Sep 17 00:00:00 2001 From: phixxy Date: Sat, 27 Jan 2024 17:10:21 -0800 Subject: [PATCH] forgot to use f string --- extensions/chatgpt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/chatgpt.py b/extensions/chatgpt.py index 5b948d3..2c71d52 100644 --- a/extensions/chatgpt.py +++ b/extensions/chatgpt.py @@ -208,7 +208,7 @@ class ChatGPT(commands.Cog): if ctx.author.get_role(self.premium_role): prompt = ctx.message.content.split(" ", maxsplit=1)[1] img_url = await self.get_dalle(prompt) - await ctx.send("Generated by: {ctx.author.name}\nPrompt: {prompt}\n{img_url}") + await ctx.send(f"Generated by: {ctx.author.name}\nPrompt: {prompt}\n{img_url}") else: await ctx.send("Sorry you must be a premium member to use this command. (!donate)") @@ -221,7 +221,7 @@ class ChatGPT(commands.Cog): if ctx.author.get_role(self.premium_role): prompt = ctx.message.content.split(" ", maxsplit=1)[1] img_url = await self.get_dalle(prompt, "dall-e-3") - await ctx.send("Generated by: {ctx.author.name}\nPrompt: {prompt}\n{img_url}") + await ctx.send(f"Generated by: {ctx.author.name}\nPrompt: {prompt}\n{img_url}") else: await ctx.send("Sorry you must be a premium member to use this command. (!donate)")