diff --git a/index.js b/index.js index eef4e70..84a9e1a 100644 --- a/index.js +++ b/index.js @@ -154,6 +154,8 @@ client.on("Room.timeline", async function (event, room) { !(await db.getObjectDefault(`/authStatus/${room.roomId}`, false)) && authPassword ) { + if (event.getType() !== "m.room.message") return; + if (!event.event.content.body.startsWith("login")) { const response = "🔐 Not authenticated! Use login [password] to login";