This commit is contained in:
array-in-a-matrix 2023-01-30 12:21:54 -05:00
parent ff7be36ca6
commit 47f3a708b7
2 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,3 @@
# real
# based
real
based

View file

@ -10,8 +10,8 @@ client.start().then(() => console.log(`real`));
client.on("room.message", (roomId, event) => {
if (!event["content"] || event["sender"] === config.user) return;
try {
if (event["content"]["body"].toLowerCase().includes("real")) {
client.replyText(roomId, event, "real")
if (event["content"]["body"].toLowerCase().includes("base")) {
client.replyText(roomId, event, "based on what?")
console.table([roomId, event["sender"], event["content"]["body"]])
}
} catch (error) {