generated from array-in-a-matrix/matrix-bot-template
fix regex
This commit is contained in:
parent
c86d97b940
commit
f27c772835
2
index.js
2
index.js
|
@ -19,7 +19,7 @@ client.on("room.message", (roomId, event) => {
|
|||
if (!event["content"] || event["sender"] === config.user) return;
|
||||
const message = event["content"]["body"].toLowerCase();
|
||||
|
||||
if (message.match(/w*.e*o*w/gi)) {
|
||||
if (message.match(/m*.e*.o*.w/gi)) {
|
||||
let msg = "meow";
|
||||
while (Math.floor(Math.random() * 5)) {
|
||||
msg = msg.concat(" meow");
|
||||
|
|
Loading…
Reference in New Issue