Updated host url

This commit is contained in:
BordedDev 2025-04-10 09:53:25 +02:00
parent b524d0e507
commit 4e5fd24774
No known key found for this signature in database
GPG Key ID: C5F495EAE56673BF
2 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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: {