diff --git a/api.js b/api.js index 755dda8..262c8e3 100644 --- a/api.js +++ b/api.js @@ -307,6 +307,8 @@ app.post("/api/message", async (req, res) => { const { password, message, username } = req.body; const passphrase = process.env.WEBHOOK_PASSPHRASE; + const { processMessageChain } = await require("./src/chain"); + // Verify the password if (password !== passphrase) { logger.error(`Password does not match passphrase`);