Prechádzať zdrojové kódy

Lift reaction restriction

denikson 6 rokov pred
rodič
commit
824aa2fa85
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -97,7 +97,7 @@ const commands = {
     },
     "react to": (msg, s) => {
         if (!isAuthorised(msg.member)) return;
-        const pattern = /^react to\s+(\<[^\>]+\>)\s+with\s+\<:[^:]+:([^\>]+)\>$/i;
+        const pattern = /^react to\s+"([^"]+)"\s+with\s+\<:[^:]+:([^\>]+)\>$/i;
         let contents = pattern.exec(s);
         if(contents != null) {
             let reactable = contents[1];