Updated host url
This commit is contained in:
parent
b524d0e507
commit
4e5fd24774
@ -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",
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user