diff --git a/.gitignore b/.gitignore index 0e50291..b7d0f78 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,2 @@ node_modules dist -store.json -auth.json -config.json diff --git a/auth.json b/auth.json new file mode 100644 index 0000000..18e3f1a --- /dev/null +++ b/auth.json @@ -0,0 +1 @@ +{"secretKey":"XT0HBMKvfXV9zp8r1CFuIHU4XWLps6qkfabacrxdkNQ="} \ No newline at end of file diff --git a/src/config.preset.json b/src/config.json similarity index 57% rename from src/config.preset.json rename to src/config.json index decf090..dd02bfa 100644 --- a/src/config.preset.json +++ b/src/config.json @@ -1,11 +1,11 @@ { - "baseUrl": "https://", - "userId": "@", + "baseUrl": "https://matrix.aslan2142.space", + "userId": "@aslobot:aslan2142.space", "authPath": "auth.json", "storePath": "store.json", "auth": { - "accessToken": "", - "deviceId": "" + "accessToken": "mct_iW6Cif22H34s5yAHrmqfBQUsMrGaH2_0QWfYU", + "deviceId": "PBz1Ig9c3p" }, "app": { "triggerPrefix": "!", diff --git a/src/index.ts b/src/index.ts index a4b86f2..98922ef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,6 @@ import config from "./config.json" with { type: "json" }; import { MatrixClient, createClient, ClientEvent } from "matrix-js-sdk"; import { registerModules } from "./modules/module.js"; -import { load, save } from "./store/store.js"; let matrixClient: MatrixClient | undefined = undefined; @@ -39,7 +38,4 @@ if (initCode > 0) { process.exit(initCode); } -load(); -setInterval(() => save(), 60000); - listen(); diff --git a/src/modules/base/base.ts b/src/modules/base/base.ts index 53308db..9d4fd66 100644 --- a/src/modules/base/base.ts +++ b/src/modules/base/base.ts @@ -49,8 +49,8 @@ const onHelp = (_text: string, roomId: string) => {