we dont need pre-commit in the bot

This commit is contained in:
Luke Robles 2023-10-26 11:49:17 -07:00
parent 3a18c03ddc
commit 7a8d674130
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ class StableDiffusion(commands.Cog):
async def sd( async def sd(
self, ctx: commands.Context, positive_prompt: str, negative_prompt: str 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 socket
import stable_diffusion import stable_diffusion
@ -47,6 +48,7 @@ class StableDiffusion(commands.Cog):
if ctx.author.id == core_utils.my_id: if ctx.author.id == core_utils.my_id:
ip = "192.168.1.19" ip = "192.168.1.19"
enable_upscale = "true" enable_upscale = "true"
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(1) s.settimeout(1)
try: try:

View File

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