Przeglądaj źródła

Lift reaction restriction

denikson 6 lat temu
rodzic
commit
824aa2fa85
1 zmienionych plików z 1 dodań i 1 usunięć
  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];