|
@@ -112,7 +112,7 @@ const commands = {
|
|
},
|
|
},
|
|
"remove reaction to": (msg, s) => {
|
|
"remove reaction to": (msg, s) => {
|
|
if (!isAuthorised(msg.member)) return;
|
|
if (!isAuthorised(msg.member)) return;
|
|
- let content = s.substring("remove reaction to ".length).trim();
|
|
|
|
|
|
+ let content = s.substring("remove reaction to ".length).trim().toLowerCase();
|
|
if(!db.get("messageReactions").has(content).value()) {
|
|
if(!db.get("messageReactions").has(content).value()) {
|
|
msg.channel.send(`${msg.author.toString()} No such reaction available!`);
|
|
msg.channel.send(`${msg.author.toString()} No such reaction available!`);
|
|
return;
|
|
return;
|
|
@@ -146,8 +146,9 @@ client.on("message", m => {
|
|
if (m.author.id == client.user.id) return;
|
|
if (m.author.id == client.user.id) return;
|
|
|
|
|
|
let content = m.cleanContent.trim();
|
|
let content = m.cleanContent.trim();
|
|
- if(db.get("messageReactions").has(content.toLowerCase()).value()) {
|
|
|
|
- m.react(client.emojis.get(db.get("messageReactions").get(content).value()));
|
|
|
|
|
|
+ let lowerContent = content.toLowerCase();
|
|
|
|
+ if(db.get("messageReactions").has(lowerContent).value()) {
|
|
|
|
+ m.react(client.emojis.get(db.get("messageReactions").get(lowerContent).value()));
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|