mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-05-15 03:45:22 +00:00
Fix manual launch script for changed room backing store interface.
This commit is contained in:
@@ -15,14 +15,13 @@
|
||||
import { draupnirClient, makeBotModeToggle } from "./mjolnirSetupUtils";
|
||||
import { configRead } from "../../src/config";
|
||||
import { SqliteRoomStateBackingStore } from "../../src/backingstore/better-sqlite3/SqliteRoomStateBackingStore";
|
||||
import path from "path";
|
||||
import { DefaultEventDecoder } from "matrix-protection-suite";
|
||||
|
||||
void (async () => {
|
||||
const config = configRead();
|
||||
const toggle = await makeBotModeToggle(config, {
|
||||
backingStore: new SqliteRoomStateBackingStore(
|
||||
path.join(config.dataPath, "room-state-backing-store.db"),
|
||||
backingStore: SqliteRoomStateBackingStore.create(
|
||||
config.dataPath,
|
||||
DefaultEventDecoder
|
||||
),
|
||||
allowSafeMode: true,
|
||||
|
||||
Reference in New Issue
Block a user