From 4dcdd0287ea129cba0c8b3d5d675f9692733f293 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 30 Nov 2023 17:10:41 +1300 Subject: [PATCH] Check for M_USER_IN_USE in seed.js --- scripts/seed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/seed.js b/scripts/seed.js index 4fc704c..4dc08e0 100644 --- a/scripts/seed.js +++ b/scripts/seed.js @@ -71,7 +71,7 @@ async function uploadAutoEmoji(guild, name, filename) { try { await api.register(reg.sender_localpart) } catch (e) { - if (e.data?.error !== "Internal server error") throw e // "Internal server error" is the only OK error because Synapse says this if you try to register the same username twice. + if (e.errcode === "M_USER_IN_USE" || e.data?.error !== "Internal server error") throw e // "Internal server error" is the only OK error because Synapse says this if you try to register the same username twice. } // upload initial images...