SHARE
TWEET

Untitled

a guest Nov 15th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "name": "prefix",
  3.   "permissions": "NONE",
  4.   "restriction": "1",
  5.   "desc": "Change your servers prefix by doing %prefix%prefix [prefix] and the bot will respond using that.\n\nThe prefix can be anything, it doesn't just have to be a symbol!",
  6.   "_id": "serverprefix",
  7.   "actions": [
  8.     {
  9.       "member": "1",
  10.       "varName": "",
  11.       "permission": "MANAGE_GUILD",
  12.       "iftrue": "2",
  13.       "iftrueVal": "4",
  14.       "iffalse": "2",
  15.       "iffalseVal": "2",
  16.       "name": "Check Member Permissions"
  17.     },
  18.     {
  19.       "channel": "0",
  20.       "varName": "",
  21.       "message": "No permission. (MANAGE_GUILD)",
  22.       "storage": "0",
  23.       "varName2": "",
  24.       "name": "Send Message"
  25.     },
  26.     {
  27.       "name": "End Action Sequence"
  28.     },
  29.     {
  30.       "info": "0",
  31.       "infoIndex": "1",
  32.       "storage": "1",
  33.       "varName": "tag",
  34.       "name": "Store Command Params"
  35.     },
  36.     {
  37.       "condition": "0",
  38.       "comparison": "1",
  39.       "value": "1",
  40.       "iftrue": "2",
  41.       "iftrueVal": "6",
  42.       "iffalse": "0",
  43.       "iffalseVal": "",
  44.       "name": "Check Parameters"
  45.     },
  46.     {
  47.       "storage": "1",
  48.       "varName": "tag",
  49.       "comparison": "1",
  50.       "value": "\"${server.tag || Files.data.settings.tag || \"\"}\"",
  51.       "iftrue": "0",
  52.       "iftrueVal": "",
  53.       "iffalse": "2",
  54.       "iffalseVal": "8",
  55.       "name": "Check Variable"
  56.     },
  57.     {
  58.       "channel": "0",
  59.       "varName": "",
  60.       "message": "Prefix is already set to `${tempVars(\"tag\")}` Do `${tempVars(\"tag\")}prefix [newprefix]` to change it.",
  61.       "storage": "0",
  62.       "varName2": "",
  63.       "name": "Send Message"
  64.     },
  65.     {
  66.       "name": "End Action Sequence"
  67.     },
  68.     {
  69.       "channel": "0",
  70.       "varName": "",
  71.       "message": "This servers current prefix is ${server.tag}",
  72.       "storage": "0",
  73.       "varName2": "",
  74.       "name": "Send Message"
  75.     },
  76.     {
  77.       "name": "End Action Sequence"
  78.     },
  79.     {
  80.       "behavior": "1",
  81.       "interpretation": "0",
  82.       "code": "const filePath = require(\"path\").join(\"data\",\"serverPrefixes.json\");\t\n\nlet newTag = tempVars(\"tag\");\n\nif(Array.isArray(this.prefixes)){ \n  console.log(\"Old version serverPrefixes.json detected.  Please remove serverPrefixes.json and restart your bot otherwise setting new prefixes will not work!\")\n  newTag = tag;\n}\n\nserver.tag = newTag; \nBot.prefixes[server.id] = newTag\t   \nrequire(\"fs\").writeFileSync(filePath, JSON.stringify(Bot.prefixes));\nthis.callNextAction(cache);",
  83.       "storage": "0",
  84.       "varName": "",
  85.       "name": "Run Script"
  86.     },
  87.     {
  88.       "channel": "0",
  89.       "varName": "",
  90.       "message": "The prefix has been changed to `${tempVars(\"tag\")}`",
  91.       "storage": "0",
  92.       "varName2": "",
  93.       "name": "Send Message"
  94.     }
  95.   ],
  96.   "_aliases": [],
  97.   "comType": "0"
  98. }
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
 
Top