diff --git a/tools/addRoomsToDirectory.ts b/tools/addRoomsToDirectory.ts index f4f4b9fbc39e4fcf2c79ea836e649d5d5ea916e3..d127226dc30e43ce480b19cdf60180c5702e4451 100644 --- a/tools/addRoomsToDirectory.ts +++ b/tools/addRoomsToDirectory.ts @@ -98,7 +98,7 @@ async function run() { } catch (e) { log.error(`Failed to load database`, e); } - + // This will be broken. let rooms = await bridge.getRoomStore().getEntriesByRemoteRoomData({ discord_type: "text", }); diff --git a/tools/chanfix.ts b/tools/chanfix.ts index d06b4b98c4dc9341076983789057509433e85521..1fdc9109995c802e1cebd36ce6fbbe6cb3817665 100644 --- a/tools/chanfix.ts +++ b/tools/chanfix.ts @@ -101,7 +101,8 @@ const bridge = new Bridge({ userStore: config.database.userStorePath, }); -provisioner.SetBridge(bridge); +// Broken +//provisioner.setStore(null); discordbot.setBridge(bridge); async function run() { @@ -117,6 +118,7 @@ async function run() { const client = await discordbot.ClientFactory.getClient(); // first set update_icon to true if needed + // This will be broken const mxRoomEntries = await bridge.getRoomStore().getEntriesByRemoteRoomData({ update_name: true, update_topic: true, @@ -132,6 +134,7 @@ async function run() { return; // skipping because something was set manually } entry.remote.set("update_icon", true); + // This will be broken promiseList.push(bridge.getRoomStore().upsertEntry(entry)); }); await Promise.all(promiseList); diff --git a/tools/ghostfix.ts b/tools/ghostfix.ts index 091ae37d006a469f953c09af97e12f5d19bafab5..b634282e2d6f559a5aa6d911c9b510ce40301b99 100644 --- a/tools/ghostfix.ts +++ b/tools/ghostfix.ts @@ -114,7 +114,8 @@ const bridge = new Bridge({ userStore: config.database.userStorePath, }); -provisioner.SetBridge(bridge); +// This will not work. +//provisioner.SetBridge(bridge); discordbot.setBridge(bridge); async function run() {