meow
This commit is contained in:
parent
4df2500be6
commit
6606983915
7
index.js
7
index.js
|
@ -10,8 +10,13 @@ client.start().then(() => console.log(`meow`));
|
|||
client.on("room.message", (roomId, event) => {
|
||||
if (!event["content"] || event["sender"] === config.user) return;
|
||||
try {
|
||||
|
||||
if (event["content"]["body"].toLowerCase().includes("meow")) {
|
||||
client.replyText(roomId, event, "meow")
|
||||
let meow = "meow"
|
||||
for ( i in Math.floor(Math.random() * 5)){
|
||||
meow.concat(" meow")
|
||||
}
|
||||
client.replyText(roomId, event, meow)
|
||||
console.table([roomId, event["sender"], event["content"]["body"]])
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in a new issue