Update 'index.js'
This commit is contained in:
parent
ff7be36ca6
commit
eeb4cb9968
2
index.js
2
index.js
|
@ -8,7 +8,7 @@ AutojoinRoomsMixin.setupOnClient(client);
|
||||||
client.start().then(() => console.log(`real`));
|
client.start().then(() => console.log(`real`));
|
||||||
|
|
||||||
client.on("room.message", (roomId, event) => {
|
client.on("room.message", (roomId, event) => {
|
||||||
if (!event["content"] || event["sender"] === config.user) return;
|
if (!event["content"] || event["sender"].includes("_bot:")) return;
|
||||||
try {
|
try {
|
||||||
if (event["content"]["body"].toLowerCase().includes("real")) {
|
if (event["content"]["body"].toLowerCase().includes("real")) {
|
||||||
client.replyText(roomId, event, "real")
|
client.replyText(roomId, event, "real")
|
||||||
|
|
Loading…
Reference in a new issue