瀏覽代碼

List known reactions

denikson 6 年之前
父節點
當前提交
b35aa2518b
共有 1 個文件被更改,包括 4 次插入0 次删除
  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")