From 167b1b8ea0c5401067c232e15ab2fef3f144e33c Mon Sep 17 00:00:00 2001 From: phixxy Date: Tue, 30 Jan 2024 02:35:45 -0800 Subject: [PATCH] added indicator that dalle is generating image --- extensions/chatgpt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/chatgpt.py b/extensions/chatgpt.py index 29c83fc..920b3a2 100644 --- a/extensions/chatgpt.py +++ b/extensions/chatgpt.py @@ -220,6 +220,7 @@ class ChatGPT(commands.Cog): async def generate_dalle_image(self, ctx, model, quality="standard", size="1024x1024"): if ctx.author.get_role(self.premium_role): prompt = ctx.message.content.split(" ", maxsplit=1)[1] + await ctx.send(f"Please be patient this may take some time! Generating: {prompt}.") image_url = await self.dalle_api_call(prompt, model=model, quality=quality, size=size) my_filename = str(time.time_ns()) + ".png" image_filepath = f"{self.data_dir}dalle/{my_filename}"