Updated host url
This commit is contained in:
parent
b524d0e507
commit
4e5fd24774
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"tasks": {
|
"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-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=snek.molodetz.nl:443,127.0.0.1:8188 --allow-run=\"deno\" src/ws-snek-image-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": {
|
"imports": {
|
||||||
"@eta-dev/eta": "jsr:@eta-dev/eta@^3.5.0",
|
"@eta-dev/eta": "jsr:@eta-dev/eta@^3.5.0",
|
||||||
|
@ -4,7 +4,7 @@ import {getLogger} from "@logtape/logtape"
|
|||||||
|
|
||||||
const logger = getLogger(["ws-socket"])
|
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 (
|
const baseRequest = async (
|
||||||
action: string,
|
action: string,
|
||||||
@ -161,7 +161,7 @@ export class Bot extends EventEmitter<
|
|||||||
constructor(
|
constructor(
|
||||||
username: string,
|
username: string,
|
||||||
password: string,
|
password: string,
|
||||||
url: string | URL = "wss://snek.molodetz.nl/rpc.ws",
|
url: string | URL = "wss://molodetz.online/rpc.ws",
|
||||||
) {
|
) {
|
||||||
super()
|
super()
|
||||||
this.#username = username
|
this.#username = username
|
||||||
@ -284,7 +284,7 @@ export class Bot extends EventEmitter<
|
|||||||
imageForm.append("files[]", file)
|
imageForm.append("files[]", file)
|
||||||
}
|
}
|
||||||
|
|
||||||
return await fetch("https://snek.molodetz.nl/drive.bin", {
|
return await fetch("https://molodetz.online/drive.bin", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: imageForm,
|
body: imageForm,
|
||||||
headers: {
|
headers: {
|
||||||
|
Loading…
Reference in New Issue
Block a user