fix regex

This commit is contained in:
array-in-a-matrix 2023-11-06 22:44:37 -05:00
parent c86d97b940
commit f27c772835
1 changed files with 1 additions and 1 deletions

View File

@ -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");