force register commands on ready

This commit is contained in:
Luke Robles 2022-10-18 12:31:17 -07:00
parent c98f41376b
commit 474db87184
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,8 @@ async def on_ready():
),
)
if os.getenv("DRAGON_ENV") == "prod":
await bot.register_commands(guild_id=core_utils.my_guilds, force=True)
for guild in bot.guilds:
await bot.register_commands(guild_id=guild.id, force=True)
await bot.get_channel(152921472304676865).send("I have reconnected")

View File

@ -82,7 +82,7 @@ class ActualUtils(commands.Cog):
@commands.slash_command(
guild_ids=core_utils.my_guilds,
name="sd",
description="Pass a prompt and optinal negative prompt to stable diffusion",
description="Pass a prompt and optional negative prompt to stable diffusion",
)
@option(
"positive_prompt",