Update 'index.js'

This commit is contained in:
array-in-a-matrix 2023-01-30 13:23:15 -05:00
parent ff7be36ca6
commit eeb4cb9968
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ AutojoinRoomsMixin.setupOnClient(client);
client.start().then(() => console.log(`real`));
client.on("room.message", (roomId, event) => {
if (!event["content"] || event["sender"] === config.user) return;
if (!event["content"] || event["sender"].includes("_bot:")) return;
try {
if (event["content"]["body"].toLowerCase().includes("real")) {
client.replyText(roomId, event, "real")