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 {
|
try {
|
||||||
|
|
||||||
if (event["content"]["body"].toLowerCase().includes("meow")) {
|
if (event["content"]["body"].toLowerCase().includes("meow")) {
|
||||||
let meow = "meow"
|
let msg="meow";
|
||||||
for ( i in Math.floor(Math.random() * 5)){
|
while(Math.floor(Math.random() * 5)){
|
||||||
meow.concat(" meow")
|
msg = msg.concat(" meow")
|
||||||
}
|
}
|
||||||
client.replyText(roomId, event, meow)
|
client.replyText(roomId, event, msg)
|
||||||
console.table([roomId, event["sender"], event["content"]["body"]])
|
console.table([roomId, event["sender"], event["content"]["body"]])
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in a new issue