meow
This commit is contained in:
parent
506b38faee
commit
601ef76759
8
index.js
8
index.js
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue