generated from array-in-a-matrix/matrix-bot-template
Update 'index.js'
This commit is contained in:
parent
9662133052
commit
b9504cc6a1
2
index.js
2
index.js
|
@ -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?")
|
||||
|
|
Loading…
Reference in New Issue