You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
returnawaitctx.respond("The OpenAI API is currently being rate-limited. Try again after some time.", ephemeral=True)
211
-
exceptopenai.error.ServiceUnavailableError:
212
-
returnawaitctx.respond("The ChatGPT service is currently unavailable.\nTry again after some time, or check it's status at https://status.openai.com", ephemeral=True)
213
-
exceptopenai.error.APIError:
214
-
returnawaitctx.respond("ChatGPT encountered an internal error. Please try again.", ephemeral=True)
215
-
exceptopenai.error.Timeout:
216
-
returnawaitctx.respond("Your request timed out. Please try again, or wait for a while.", ephemeral=True)
# return await ctx.respond("The OpenAI API is currently being rate-limited. Try again after some time.", ephemeral=True)
211
+
# except openai.error.ServiceUnavailableError:
212
+
# return await ctx.respond("The ChatGPT service is currently unavailable.\nTry again after some time, or check it's status at https://status.openai.com", ephemeral=True)
description="Generate an image of your choice using the DALL-E modal."
225
-
)
226
-
@option(name="prompt", description="What image do you want the bot to generate?", type=str)
227
-
@option(name="resolution", description="Set a custom resolution for your generated image", type=str, default="512x512", choices=["256x256", "512x512", "1024x1024"])
returnawaitctx.respond("The OpenAI API is currently being rate-limited. Try again after some time.", ephemeral=True)
253
-
exceptopenai.error.ServiceUnavailableError:
254
-
returnawaitctx.respond("The OpenAI service is currently unavailable.\nTry again after some time, or check it's status at https://status.openai.com", ephemeral=True)
255
-
exceptopenai.error.APIError:
256
-
returnawaitctx.respond("DALL-E encountered an internal error. Please try again.", ephemeral=True)
257
-
exceptopenai.error.Timeout:
258
-
returnawaitctx.respond("Your request timed out. Please try again, or wait for a while.", ephemeral=True)
259
-
localembed=discord.Embed(title="Here's an image generated using your prompt.", color=discord.Color.random())
# description="Generate an image of your choice using the DALL-E modal."
225
+
# )
226
+
# @option(name="prompt", description="What image do you want the bot to generate?", type=str)
227
+
# @option(name="resolution", description="Set a custom resolution for your generated image", type=str, default="512x512", choices=["256x256", "512x512", "1024x1024"])
# return await ctx.respond("The OpenAI API is currently being rate-limited. Try again after some time.", ephemeral=True)
253
+
# except openai.error.ServiceUnavailableError:
254
+
# return await ctx.respond("The OpenAI service is currently unavailable.\nTry again after some time, or check it's status at https://status.openai.com", ephemeral=True)
0 commit comments