From 28455ba4c8ee1154d6311e5bbd1dddc527d65222 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 10 May 2023 23:17:37 +1200 Subject: [PATCH] seed initial setup --- db/ooye.db | Bin 94208 -> 94208 bytes matrix/api.js | 14 ++++++++++++++ matrix/file.js | 9 ++++++++- seed.js | 35 +++++++++++++++++++++++++++++++++++ test/test.js | 1 - 5 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 seed.js diff --git a/db/ooye.db b/db/ooye.db index bae53f6c0cabf69cfac4dce2dd27882fc055d96a..064c32b6606e9b33b2d031f1b55017cf70430d0a 100644 GIT binary patch delta 306 zcmZp8z}oPDb%HeGrin7njGHzlEXfz);BIH&&*!_v=ghl~SCXfN`#pF2W26t(fgV+9PG$Zei?XnB@Z4wMxxbmC z;VO@vEpt61*%ot5{@ANAS+d4)b6am66CVd(Cj-AL-wyr~elfnz%>on3`6lm}Cnk%_ UH5_`(iHwu?ztGzJY@XCb0CJUX { + // ensure registration is correctly set... + + // test connection to homeserver... + + // upload initial images... + const avatarUrl = await file.uploadDiscordFileToMxc("https://cadence.moe/friends/out_of_your_element_rev_2.jpg") + + // set profile data on homeserver... + await api.profileSetDisplayname(`@${reg.sender_localpart}:cadence.moe`, "Out Of Your Element") + await api.profileSetAvatarUrl(`@${reg.sender_localpart}:cadence.moe`, avatarUrl) + + // database ddl... + + // add initial rows to database, like adding the bot to sim... + +})() diff --git a/test/test.js b/test/test.js index bf0023e..2c44bb3 100644 --- a/test/test.js +++ b/test/test.js @@ -7,7 +7,6 @@ const config = require("../config") const passthrough = require("../passthrough") const db = new sqlite("db/ooye.db") -// @ts-ignore const sync = new HeatSync({watchFS: false}) Object.assign(passthrough, { config, sync, db })