This commit is contained in:
array-in-a-matrix 2023-01-31 16:11:47 -05:00
parent 506b38faee
commit 601ef76759

View file

@ -12,11 +12,11 @@ client.on("room.message", (roomId, event) => {
try {
if (event["content"]["body"].toLowerCase().includes("meow")) {
let meow = "meow"
for ( i in Math.floor(Math.random() * 5)){
meow.concat(" meow")
let msg="meow";
while(Math.floor(Math.random() * 5)){
msg = msg.concat(" meow")
}
client.replyText(roomId, event, meow)
client.replyText(roomId, event, msg)
console.table([roomId, event["sender"], event["content"]["body"]])
}
} catch (error) {