fix ip for my user

This commit is contained in:
Luke Robles 2023-09-24 14:12:24 -07:00
parent 463b7bbf50
commit 6eb8efec6e

View File

@ -42,7 +42,6 @@ class StableDiffusion(commands.Cog):
# Send my requests to my gaming computer with the 3080 (if its up) # Send my requests to my gaming computer with the 3080 (if its up)
if ctx.author.id == core_utils.my_id: if ctx.author.id == core_utils.my_id:
ip = "192.168.1.19"
steps = 120 steps = 120
if "lora" not in positive_prompt: if "lora" not in positive_prompt:
positive_prompt = ( positive_prompt = (
@ -53,9 +52,10 @@ class StableDiffusion(commands.Cog):
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:
ip = "192.168.1.19"
s.connect((ip, int(port))) s.connect((ip, int(port)))
except: except:
ip = "192.168.1.80" ip = "192.168.1.5"
try: try:
await ctx.defer() await ctx.defer()
original_message = await ctx.followup.send( original_message = await ctx.followup.send(