From 4e5fd24774d299ad4f25d226ff4bec7578ae8eb4 Mon Sep 17 00:00:00 2001 From: BordedDev <> Date: Thu, 10 Apr 2025 09:53:25 +0200 Subject: [PATCH] Updated host url --- deno.json | 4 ++-- src/snek/snek-socket.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deno.json b/deno.json index fdcc99e..a51a05a 100644 --- a/deno.json +++ b/deno.json @@ -1,7 +1,7 @@ { "tasks": { - "dev:snek-llama-bot": "deno run --allow-env --allow-read --allow-sys --allow-ffi --allow-net=snek.molodetz.nl:443,127.0.0.1:8188 --allow-run=\"deno\" src/ws-snek-llama-bot.ts", - "dev:snek-img-bot": "deno run --allow-env --allow-read --allow-sys --allow-ffi --allow-net=snek.molodetz.nl:443,127.0.0.1:8188 --allow-run=\"deno\" src/ws-snek-image-bot.ts" + "dev:snek-llama-bot": "deno run --allow-env --allow-read --allow-sys --allow-ffi --allow-net=molodetz.online:443,127.0.0.1:8188 --allow-run=\"deno\" src/ws-snek-llama-bot.ts", + "dev:snek-img-bot": "deno run --allow-env --allow-read --allow-sys --allow-ffi --allow-net=molodetz.online:443,127.0.0.1:8188 --allow-run=\"deno\" src/ws-snek-image-bot.ts" }, "imports": { "@eta-dev/eta": "jsr:@eta-dev/eta@^3.5.0", diff --git a/src/snek/snek-socket.ts b/src/snek/snek-socket.ts index aa11a4b..f61cb9e 100644 --- a/src/snek/snek-socket.ts +++ b/src/snek/snek-socket.ts @@ -4,7 +4,7 @@ import {getLogger} from "@logtape/logtape" const logger = getLogger(["ws-socket"]) -export const BASE_URL = "https://snek.molodetz.nl/login.json" +export const BASE_URL = "https://molodetz.online/login.json" const baseRequest = async ( action: string, @@ -161,7 +161,7 @@ export class Bot extends EventEmitter< constructor( username: string, password: string, - url: string | URL = "wss://snek.molodetz.nl/rpc.ws", + url: string | URL = "wss://molodetz.online/rpc.ws", ) { super() this.#username = username @@ -284,7 +284,7 @@ export class Bot extends EventEmitter< imageForm.append("files[]", file) } - return await fetch("https://snek.molodetz.nl/drive.bin", { + return await fetch("https://molodetz.online/drive.bin", { method: "POST", body: imageForm, headers: {