SHARE
TWEET

User-info Command (DBM)

a guest Jul 17th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "name": "user-info",
  3.   "permissions": "NONE",
  4.   "restriction": "1",
  5.   "actions": [
  6.     {
  7.       "comment": "Created By: TheMonDon#1721 | Inspired By: iidxntmodalt#8629",
  8.       "color": "#ff80ff",
  9.       "name": "Comment"
  10.     },
  11.     {
  12.       "condition": "1",
  13.       "comparison": "0",
  14.       "value": "1",
  15.       "iftrue": "3",
  16.       "iftrueVal": "10",
  17.       "iffalse": "0",
  18.       "iffalseVal": "16",
  19.       "name": "Check Parameters"
  20.     },
  21.     {
  22.       "condition": "0",
  23.       "comparison": "0",
  24.       "value": "1",
  25.       "iftrue": "0",
  26.       "iftrueVal": "",
  27.       "iffalse": "3",
  28.       "iffalseVal": "25",
  29.       "name": "Check Parameters"
  30.     },
  31.     {
  32.       "info": "0",
  33.       "infoIndex": "1",
  34.       "storage": "1",
  35.       "varName": "userid",
  36.       "name": "Store Command Params"
  37.     },
  38.     {
  39.       "info": "0",
  40.       "find": "${tempVars(\"userid\")}",
  41.       "storage": "1",
  42.       "varName": "userid_user",
  43.       "find2": "0",
  44.       "name": "Find Member"
  45.     },
  46.     {
  47.       "member": "2",
  48.       "varName": "userid_user",
  49.       "info": "0",
  50.       "storage": "1",
  51.       "varName2": "ment_obj",
  52.       "name": "Store Member Info"
  53.     },
  54.     {
  55.       "storage": "1",
  56.       "varName": "ment_obj",
  57.       "comparison": "0",
  58.       "value": "",
  59.       "iftrue": "3",
  60.       "iftrueVal": "2",
  61.       "iffalse": "0",
  62.       "iffalseVal": "",
  63.       "name": "Check Variable"
  64.     },
  65.     {
  66.       "behavior": "0",
  67.       "interpretation": "0",
  68.       "code": "const id = tempVars(\"userid\");\n(async () => {\n    try {\n        member = await client.fetchUser(id);\n        Actions.storeValue(member, 1, \"member1\", cache);\n        cache.index = cache.index + 33;\n        Actions.callNextAction(cache);\n    } catch (err) {\n        msg.channel.send(\"User ID was not found\");\n    }\n})()",
  69.       "storage": "0",
  70.       "varName": "",
  71.       "name": "Run Script"
  72.     },
  73.     {
  74.       "name": "End Action Sequence"
  75.     },
  76.     {
  77.       "member": "2",
  78.       "varName": "ment_obj",
  79.       "info": "17",
  80.       "storage": "1",
  81.       "varName2": "createdAt",
  82.       "name": "Store Member Info"
  83.     },
  84.     {
  85.       "count": "3",
  86.       "name": "Skip Actions"
  87.     },
  88.     {
  89.       "name": "End Action Sequence"
  90.     },
  91.     {
  92.       "member": "0",
  93.       "varName": "user",
  94.       "info": "0",
  95.       "storage": "1",
  96.       "varName2": "ment_obj",
  97.       "name": "Store Member Info"
  98.     },
  99.     {
  100.       "member": "0",
  101.       "varName": "user",
  102.       "info": "17",
  103.       "storage": "1",
  104.       "varName2": "createdAt",
  105.       "name": "Store Member Info"
  106.     },
  107.     {
  108.       "behavior": "1",
  109.       "interpretation": "0",
  110.       "code": "//RS contents\nfunction getJoinRank(ID, guild) { // Call it with the ID of the user and the guild\n  if (!guild.member(ID)) return; // It will return undefined if the ID is not valid\n\n  let arr = guild.members.array(); // Create an array with every member\n  arr.sort((a, b) => a.joinedAt - b.joinedAt); // Sort them by join date\n\n  for (let index = 0; index < arr.length; index++) { // Loop though every element\n    if (arr[index].id == ID) return index; // When you find the user, return it's position\n  }\n}\nActions.storeValue(getJoinRank(tempVars(\"ment_obj\").user.id, msg.guild) , 1, \"joinPosition\", cache);\n//Creduts to General Wrex for helping making this work\nmoment = this.getWrexMods().require('moment');\nconst ts = moment(tempVars(\"createdAt\"));\nconst ts2 = moment(${tempVars(\"ment_obj\").joinedAt});\nconst ca = ts.format(\"MMM Do, YYYY\");\nconst ja = ts2.format(\"MMM Do, YYYY\");\nActions.storeValue(ca, 1, \"ca\", cache);\nActions.storeValue(ja, 1, \"ja\", cache);\nActions.callNextAction(cache);",
  111.       "storage": "0",
  112.       "varName": "rank",
  113.       "name": "Run Script"
  114.     },
  115.     {
  116.       "title": "${tempVars(\"ment_obj\").user.username}'s Info",
  117.       "author": "${member.displayName}",
  118.       "color": "RANDOM",
  119.       "url": "",
  120.       "authorIcon": "${msg.author.displayAvatarURL}",
  121.       "authorUrl": "",
  122.       "imageUrl": "",
  123.       "thumbUrl": "${tempVars(\"ment_obj\").user.displayAvatarURL}",
  124.       "timestamp": "true",
  125.       "debug": "false",
  126.       "text": "",
  127.       "year": "",
  128.       "month": "",
  129.       "day": "",
  130.       "hour": "",
  131.       "minute": "",
  132.       "second": "",
  133.       "storage": "1",
  134.       "varName": "embed",
  135.       "name": "Create Embed Message"
  136.     },
  137.     {
  138.       "storage": "1",
  139.       "varName": "embed",
  140.       "fieldName": "**Username**",
  141.       "message": "${tempVars(\"ment_obj\").user.username || 'N/A'}",
  142.       "inline": "0",
  143.       "name": "Add Embed Field"
  144.     },
  145.     {
  146.       "storage": "1",
  147.       "varName": "embed",
  148.       "fieldName": "**Username w/ Tag**",
  149.       "message": "${tempVars(\"ment_obj\").user.tag || 'N\\A'}",
  150.       "inline": "0",
  151.       "name": "Add Embed Field"
  152.     },
  153.     {
  154.       "storage": "1",
  155.       "varName": "embed",
  156.       "fieldName": "**Nickname**",
  157.       "message": "${tempVars(\"ment_obj\").displayName || 'N/A'}",
  158.       "inline": "0",
  159.       "name": "Add Embed Field"
  160.     },
  161.     {
  162.       "storage": "1",
  163.       "varName": "embed",
  164.       "fieldName": "User ID",
  165.       "message": "${tempVars(\"ment_obj\").user.id || 'N/A'}",
  166.       "inline": "0",
  167.       "name": "Add Embed Field"
  168.     },
  169.     {
  170.       "storage": "1",
  171.       "varName": "embed",
  172.       "fieldName": "**Status**",
  173.       "message": "${tempVars(\"ment_obj\").presence.status || 'N/A'}",
  174.       "inline": "0",
  175.       "name": "Add Embed Field"
  176.     },
  177.     {
  178.       "storage": "1",
  179.       "varName": "embed",
  180.       "fieldName": "**Joined Server**",
  181.       "message": "${tempVars(\"ja\") || 'N/A'}",
  182.       "inline": "0",
  183.       "name": "Add Embed Field"
  184.     },
  185.     {
  186.       "storage": "1",
  187.       "varName": "embed",
  188.       "fieldName": "**Account Created**",
  189.       "message": "${tempVars(\"ca\") || 'N/A'}",
  190.       "inline": "0",
  191.       "name": "Add Embed Field"
  192.     },
  193.     {
  194.       "storage": "1",
  195.       "varName": "embed",
  196.       "fieldName": "**Is Bannable?**",
  197.       "message": "${tempVars(\"ment_obj\").bannable}",
  198.       "inline": "0",
  199.       "name": "Add Embed Field"
  200.     },
  201.     {
  202.       "storage": "1",
  203.       "varName": "embed",
  204.       "fieldName": "**Join Position**",
  205.       "message": "${tempVars(\"joinPosition\")+1 || 'N/A'}",
  206.       "inline": "0",
  207.       "name": "Add Embed Field"
  208.     },
  209.     {
  210.       "storage": "1",
  211.       "varName": "embed",
  212.       "fieldName": "**Roles**",
  213.       "message": "${tempVars(\"ment_obj\").roles.array() || 'N/A'}",
  214.       "inline": "0",
  215.       "name": "Add Embed Field"
  216.     },
  217.     {
  218.       "storage": "1",
  219.       "varName": "embed",
  220.       "channel": "0",
  221.       "varName2": "",
  222.       "storage3": "0",
  223.       "varName3": "",
  224.       "name": "Send Embed Message"
  225.     },
  226.     {
  227.       "name": "End Action Sequence"
  228.     },
  229.     {
  230.       "behavior": "1",
  231.       "interpretation": "0",
  232.       "code": "//RS contents\nmoment = this.getWrexMods().require('moment');\nconst ts = moment(msg.author.createdAt);\nconst ts2 = moment(member.joinedAt);\nconst ca = ts.format(\"MMM Do, YYYY\");\nconst ja = ts2.format(\"MMM Do, YYYY\");\nActions.storeValue(ca, 1, \"ca1\", cache);\nActions.storeValue(ja, 1, \"ja1\", cache);\nfunction getJoinRank(ID, guild) { // Call it with the ID of the user and the guild\n  if (!guild.member(ID)) return; // It will return undefined if the ID is not valid\n\n  let arr = guild.members.array(); // Create an array with every member\n  arr.sort((a, b) => a.joinedAt - b.joinedAt); // Sort them by join date\n\n  for (let index = 0; index < arr.length; index++) { // Loop though every element\n    if (arr[index].id == ID) return index; // When you find the user, return it's position\n  }\n}\nActions.storeValue(getJoinRank(msg.author.id, msg.guild) , 1, \"joinPosition\", cache);\n//Creduts to General Wrex for helping making this work\nActions.callNextAction(cache);",
  233.       "storage": "0",
  234.       "varName": "rank",
  235.       "name": "Run Script"
  236.     },
  237.     {
  238.       "title": "${msg.author.username}'s Info",
  239.       "author": "${member.displayName}",
  240.       "color": "RANDOM",
  241.       "url": "",
  242.       "authorIcon": "${msg.author.displayAvatarURL}",
  243.       "authorUrl": "",
  244.       "imageUrl": "",
  245.       "thumbUrl": "${msg.author.displayAvatarURL}",
  246.       "timestamp": "true",
  247.       "debug": "false",
  248.       "text": "",
  249.       "year": "",
  250.       "month": "",
  251.       "day": "",
  252.       "hour": "",
  253.       "minute": "",
  254.       "second": "",
  255.       "storage": "1",
  256.       "varName": "reembed",
  257.       "name": "Create Embed Message"
  258.     },
  259.     {
  260.       "storage": "1",
  261.       "varName": "reembed",
  262.       "fieldName": "**Username**",
  263.       "message": "${msg.author.username}",
  264.       "inline": "0",
  265.       "name": "Add Embed Field"
  266.     },
  267.     {
  268.       "storage": "1",
  269.       "varName": "reembed",
  270.       "fieldName": "**Username w/ Tag**",
  271.       "message": "${msg.author.tag}",
  272.       "inline": "0",
  273.       "name": "Add Embed Field"
  274.     },
  275.     {
  276.       "storage": "1",
  277.       "varName": "reembed",
  278.       "fieldName": "**Nickname**",
  279.       "message": "${member.displayName}",
  280.       "inline": "0",
  281.       "name": "Add Embed Field"
  282.     },
  283.     {
  284.       "storage": "1",
  285.       "varName": "reembed",
  286.       "fieldName": "**User ID**",
  287.       "message": "${msg.author.id}",
  288.       "inline": "0",
  289.       "name": "Add Embed Field"
  290.     },
  291.     {
  292.       "storage": "1",
  293.       "varName": "reembed",
  294.       "fieldName": "**Status**",
  295.       "message": "${user.presence.status}",
  296.       "inline": "0",
  297.       "name": "Add Embed Field"
  298.     },
  299.     {
  300.       "storage": "1",
  301.       "varName": "reembed",
  302.       "fieldName": "**Join Date**",
  303.       "message": "${tempVars(\"ja1\")}",
  304.       "inline": "0",
  305.       "name": "Add Embed Field"
  306.     },
  307.     {
  308.       "storage": "1",
  309.       "varName": "reembed",
  310.       "fieldName": "**Account Created**",
  311.       "message": "${tempVars(\"ca1\")}",
  312.       "inline": "0",
  313.       "name": "Add Embed Field"
  314.     },
  315.     {
  316.       "storage": "1",
  317.       "varName": "reembed",
  318.       "fieldName": "**Is Bannable?**",
  319.       "message": "${member.bannable}",
  320.       "inline": "0",
  321.       "name": "Add Embed Field"
  322.     },
  323.     {
  324.       "storage": "1",
  325.       "varName": "reembed",
  326.       "fieldName": "**Join Position**",
  327.       "message": "${tempVars(\"joinPosition\")+1}",
  328.       "inline": "0",
  329.       "name": "Add Embed Field"
  330.     },
  331.     {
  332.       "storage": "1",
  333.       "varName": "reembed",
  334.       "fieldName": "**Role List**",
  335.       "message": "${member.roles.array()}",
  336.       "inline": "0",
  337.       "name": "Add Embed Field"
  338.     },
  339.     {
  340.       "storage": "1",
  341.       "varName": "reembed",
  342.       "channel": "0",
  343.       "varName2": "",
  344.       "storage3": "0",
  345.       "varName3": "",
  346.       "name": "Send Embed Message"
  347.     },
  348.     {
  349.       "name": "End Action Sequence"
  350.     },
  351.     {
  352.       "behavior": "1",
  353.       "interpretation": "0",
  354.       "code": "const moment = this.getWrexMods().require('moment');\nconst ts = moment(tempVars(\"member1\").createdAt);\nconst ca = ts.format(\"MMM Do, YYYY\");\nActions.storeValue(ca, 1, \"ca3\", cache);\nActions.callNextAction(cache);",
  355.       "storage": "0",
  356.       "varName": "",
  357.       "name": "Run Script"
  358.     },
  359.     {
  360.       "title": "User Information",
  361.       "author": "${member.displayName}",
  362.       "color": "RANDOM",
  363.       "url": "",
  364.       "authorIcon": "${msg.author.displayAvatarURL}",
  365.       "authorUrl": "",
  366.       "imageUrl": "",
  367.       "thumbUrl": "${tempVars(\"member1\").displayAvatarURL}",
  368.       "timestamp": "false",
  369.       "debug": "false",
  370.       "text": "",
  371.       "year": "",
  372.       "month": "",
  373.       "day": "",
  374.       "hour": "",
  375.       "minute": "",
  376.       "second": "",
  377.       "storage": "1",
  378.       "varName": "embed1",
  379.       "name": "Create Embed Message"
  380.     },
  381.     {
  382.       "storage": "1",
  383.       "varName": "embed1",
  384.       "fieldName": "Name",
  385.       "message": "${tempVars(\"member1\").username}",
  386.       "inline": "0",
  387.       "name": "Add Embed Field"
  388.     },
  389.     {
  390.       "storage": "1",
  391.       "varName": "embed1",
  392.       "fieldName": "Tag",
  393.       "message": "${tempVars(\"member1\").tag}",
  394.       "inline": "0",
  395.       "name": "Add Embed Field"
  396.     },
  397.     {
  398.       "storage": "1",
  399.       "varName": "embed1",
  400.       "fieldName": "ID",
  401.       "message": "${tempVars(\"member1\").id}",
  402.       "inline": "0",
  403.       "name": "Add Embed Field"
  404.     },
  405.     {
  406.       "storage": "1",
  407.       "varName": "embed1",
  408.       "fieldName": "Is Bot?",
  409.       "message": "${tempVars(\"member1\").bot}",
  410.       "inline": "0",
  411.       "name": "Add Embed Field"
  412.     },
  413.     {
  414.       "storage": "1",
  415.       "varName": "embed1",
  416.       "fieldName": "Created At",
  417.       "message": "${tempVars(\"ca3\")}",
  418.       "inline": "0",
  419.       "name": "Add Embed Field"
  420.     },
  421.     {
  422.       "storage": "1",
  423.       "varName": "embed1",
  424.       "channel": "0",
  425.       "varName2": "",
  426.       "storage3": "0",
  427.       "varName3": "",
  428.       "iffalse": "0",
  429.       "iffalseVal": "",
  430.       "name": "Send Embed Message"
  431.     }
  432.   ],
  433.   "_id": "aVVNz",
  434.   "_aliases": [
  435.     "ui",
  436.     "userinfo"
  437.   ],
  438.   "comType": "0"
  439. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top