Explorar o código

List known reactions

denikson %!s(int64=6) %!d(string=hai) anos
pai
achega
b35aa2518b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      main.js

+ 4 - 0
main.js

@@ -120,6 +120,10 @@ const commands = {
         db.get("messageReactions").unset(content).write();
         msg.channel.send(`${msg.author.toString()} Removed reaction!`);
     },
+    "reactions": msg => {
+        let reactions = db.get("messageReactions").keys().value().reduce((p, c) => `${p}\n${c}`, "");
+        msg.channel.send(`I'll react to the following messages:\n\`\`\`${reactions}\`\`\``);
+    },
     "help": msg => {
         let guides = db
             .get("guides")