|
@@ -96,6 +96,7 @@ const commands = {
|
|
|
);
|
|
|
},
|
|
|
"react to": (msg, s) => {
|
|
|
+ if (!isAuthorised(msg.member)) return;
|
|
|
const pattern = /^react to\s+(\<[^\>]+\>)\s+with\s+\<:[^:]+:([^\>]+)\>$/i;
|
|
|
let contents = pattern.exec(s);
|
|
|
if(contents != null) {
|
|
@@ -110,6 +111,7 @@ const commands = {
|
|
|
}
|
|
|
},
|
|
|
"remove reaction to": (msg, s) => {
|
|
|
+ if (!isAuthorised(msg.member)) return;
|
|
|
let content = s.substring("remove reaction to ".length).trim();
|
|
|
if(!db.get("messageReactions").has(content).value()) {
|
|
|
msg.channel.send(`${msg.author.toString()} No such reaction available!`);
|