|
@@ -106,7 +106,7 @@ const commands = {
|
|
|
msg.channel.send(`${msg.author.toString()} I cannot react with this emoji :(`);
|
|
|
return;
|
|
|
}
|
|
|
- db.get("messageReactions").set(reactable, reactionEmoji).write();
|
|
|
+ db.get("messageReactions").set(reactable.toLowerCase(), reactionEmoji).write();
|
|
|
msg.channel.send(`${msg.author.toString()} Added reaction!`);
|
|
|
}
|
|
|
},
|
|
@@ -146,7 +146,7 @@ client.on("message", m => {
|
|
|
if (m.author.id == client.user.id) return;
|
|
|
|
|
|
let content = m.cleanContent.trim();
|
|
|
- if(db.get("messageReactions").has(content).value()) {
|
|
|
+ if(db.get("messageReactions").has(content.toLowerCase()).value()) {
|
|
|
m.react(client.emojis.get(db.get("messageReactions").get(content).value()));
|
|
|
return;
|
|
|
}
|