Update 'index.js'

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

View File

@ -8,7 +8,7 @@ AutojoinRoomsMixin.setupOnClient(client);
client.start().then(() => console.log(`based`));
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("base")) {
client.replyText(roomId, event, "based on what?")