we dont need pre-commit in the bot

This commit is contained in:
Luke Robles 2023-10-26 11:49:17 -07:00
parent 035da8b152
commit 875b254dce
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ class StableDiffusion(commands.Cog):
async def sd(
self, ctx: commands.Context, positive_prompt: str, negative_prompt: str
):
if ctx.channel.name == "stable-diffusion" or ctx.channel.name == "bot-testing":
allowed_channels = ["stable-diffusion", "bot-testing"]
if ctx.channel.name in allowed_channels:
import socket
import stable_diffusion
@ -47,6 +48,7 @@ class StableDiffusion(commands.Cog):
if ctx.author.id == core_utils.my_id:
ip = "192.168.1.19"
enable_upscale = "true"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(1)
try:

View File

@ -8,7 +8,6 @@ lxml
markovify
openai
owotext
pre-commit
requests
requests-cache
wolframalpha