scope SD to just my servers
This commit is contained in:
parent
99e6625f60
commit
e8f480d0dc
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user