scope SD to just my servers

This commit is contained in:
Luke Robles 2022-11-24 11:35:49 -08:00
parent b1c30719d6
commit 2b5a90770a

View File

@ -11,7 +11,7 @@ class StableDiffusion(commands.Cog):
@commands.has_role("stable-diffuser") @commands.has_role("stable-diffuser")
@commands.slash_command( @commands.slash_command(
# guild_ids=core_utils.my_guilds, guild_ids=core_utils.my_guilds,
guild_ids=None, guild_ids=None,
name="sd", name="sd",
description="Pass a prompt and optional negative prompt to stable diffusion", description="Pass a prompt and optional negative prompt to stable diffusion",
@ -31,8 +31,7 @@ class StableDiffusion(commands.Cog):
self, ctx: commands.Context, positive_prompt: str, negative_prompt: str self, ctx: commands.Context, positive_prompt: str, negative_prompt: str
): ):
if True: if ctx.channel.name == "stable-diffusion":
# if ctx.channel.name == "stable-diffusion":
import socket import socket
import stable_diffusion import stable_diffusion