big ol if else to make this only work in the stable-diffusion channel
This commit is contained in:
parent
650a23c2c7
commit
608202b259
@ -97,6 +97,8 @@ class ActualUtils(commands.Cog):
|
||||
required=False,
|
||||
),
|
||||
):
|
||||
|
||||
if ctx.channel.name == "stable-diffusion":
|
||||
import socket
|
||||
import stable_diffusion
|
||||
|
||||
@ -114,7 +116,6 @@ class ActualUtils(commands.Cog):
|
||||
s.connect((ip, int(port)))
|
||||
except:
|
||||
ip = "192.168.1.80"
|
||||
|
||||
try:
|
||||
await ctx.defer()
|
||||
original_message = await ctx.followup.send(
|
||||
@ -139,6 +140,8 @@ class ActualUtils(commands.Cog):
|
||||
await ctx.reply(
|
||||
"Stable diffusion isnt running right now, sorry.\n%s" % e,
|
||||
)
|
||||
else:
|
||||
await ctx.respond("You can only do that in the stable-diffusion channel")
|
||||
|
||||
@commands.has_role("Track day gamers")
|
||||
@commands.slash_command(
|
||||
|
Loading…
x
Reference in New Issue
Block a user