forgot to use f string
This commit is contained in:
parent
0e8c6d8132
commit
64c11f6878
1 changed files with 2 additions and 2 deletions
|
|
@ -208,7 +208,7 @@ class ChatGPT(commands.Cog):
|
||||||
if ctx.author.get_role(self.premium_role):
|
if ctx.author.get_role(self.premium_role):
|
||||||
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
|
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
|
||||||
img_url = await self.get_dalle(prompt)
|
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:
|
else:
|
||||||
await ctx.send("Sorry you must be a premium member to use this command. (!donate)")
|
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):
|
if ctx.author.get_role(self.premium_role):
|
||||||
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
|
prompt = ctx.message.content.split(" ", maxsplit=1)[1]
|
||||||
img_url = await self.get_dalle(prompt, "dall-e-3")
|
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:
|
else:
|
||||||
await ctx.send("Sorry you must be a premium member to use this command. (!donate)")
|
await ctx.send("Sorry you must be a premium member to use this command. (!donate)")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue