zein69

contoh

Oct 20th, 2023
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.96 KB | None | 0 0
  1. {
  2.   "name": "booster announcement",
  3.   "permissions": "NONE",
  4.   "permissions2": "NONE",
  5.   "restriction": "1",
  6.   "_id": "QwdzG",
  7.   "actions": [
  8.     {
  9.       "behavior": "1",
  10.       "interpretation": "0",
  11.       "code": "const boost = require('./schema/boost');\nif (msg.type === 'USER_PREMIUM_GUILD_SUBSCRIPTION' && msg.guild.id == '1021954822116749332') {\n\tcheck();\n} else {\n\tActions.endActions(cache);\n};\nasync function check() {\n\tconst mem = await server.members.fetch(msg.author.id);\n\tif (!mem) { Actions.endActions(cache); };\n\tActions.storeValue(mem, 1, \"member\", cache);\n\tconst cek = await boost.findOne({ id: mem.id });\n\tif (cek === null) { Actions.endActions(cache); }\n\telse if (cek.amount > 1) {\n\t\tawait boost.updateOne({ id: mem.id }, {\n\t\t\t$inc: {\n\t\t\t\tamount: 1,\n\t\t\t}\n\t\t});\n\t\tconst now = await boost.findOne({ id: mem.id });\n\t\tconst chlog = await msg.guild.channels.fetch('1153171526644944927');\n\t\tchlog.send(`<@` + after.id + `>, Telah Mengeboost lagi, total boost **` + now.amount + `x**`)\n\t\tconst text = `Terima Kasih <@` + mem.id + `> , kamu sudah mengeboost server sampai **` + now.amount + `x**, dan jangan sampai lupa untuk menggambil reward tambahan karena sudah mengeboost server sampai **` + now.amount + `x**, tekan link dibawah untuk mengambil reward tambahan\\nMasih ada sisa boost setelah boost **` + now.amount + `x**, boost aja lagi gak ada ruginya!`;\n\t\tActions.storeValue(now.channelId, 1, \"chid\", cache);\n\t\tActions.storeValue(String(now.amount), 1, \"total\", cache);\n\t\tActions.storeValue(text, 1, \"text\", cache);\n\t\tActions.callNextAction(cache);\n\t}\n\telse { Actions.endActions(cache); };\n};",
  12.       "storage": "0",
  13.       "varName": "",
  14.       "name": "Run Script"
  15.     },
  16.     {
  17.       "channel": "103",
  18.       "varName": "1153171526644944927",
  19.       "message": "<@819362961239703562>,${tempVars(\"member\")} Telah boost ${tempVars(\"total\")}x, msg [link](${tempVars(\"message-url\")})",
  20.       "buttons": [],
  21.       "selectMenus": [],
  22.       "attachments": [],
  23.       "embeds": [],
  24.       "reply": true,
  25.       "ephemeral": false,
  26.       "tts": false,
  27.       "overwrite": false,
  28.       "dontSend": false,
  29.       "editMessage": "0",
  30.       "editMessageVarName": "",
  31.       "storage": "0",
  32.       "varName2": "",
  33.       "name": "Send Message"
  34.     },
  35.     {
  36.       "channel": "103",
  37.       "varName": "1153157705524052070",
  38.       "message": "<@${tempVars(\"after\").id}>",
  39.       "buttons": [
  40.         {
  41.           "name": "Ambil Reward Tambahan",
  42.           "type": "LINK",
  43.           "id": "msg-button-baaeda8d",
  44.           "row": "",
  45.           "url": "https://discord.com/channels/1021954822116749332/${tempVars(\"chid\")}",
  46.           "emoji": "<a:hype:1156568198179733575>",
  47.           "mode": "PERSISTENT",
  48.           "time": "",
  49.           "actions": []
  50.         }
  51.       ],
  52.       "selectMenus": [],
  53.       "attachments": [],
  54.       "embeds": [
  55.         {
  56.           "title": "Thanks, ${tempVars(\"member\").displayName}",
  57.           "url": "",
  58.           "color": "f169ff",
  59.           "timestamp": "true",
  60.           "imageUrl": "https://cdn.discordapp.com/attachments/1023214623249399888/1050031696218705990/empty.png",
  61.           "thumbUrl": "${tempVars(\"member\").displayAvatarURL({ dynamic:  true })}",
  62.           "description": "${tempVars(\"text\")}",
  63.           "fields": [],
  64.           "author": "${tempVars(\"member\").displayName}",
  65.           "authorUrl": "",
  66.           "authorIcon": "${tempVars(\"member\").displayAvatarURL({ dynamic:  true })}",
  67.           "footerText": "RyuShin.store",
  68.           "footerIconUrl": "https://cdn.discordapp.com/attachments/1023214623249399888/1162945845428224132/p.png"
  69.         }
  70.       ],
  71.       "reply": true,
  72.       "ephemeral": false,
  73.       "tts": false,
  74.       "overwrite": false,
  75.       "dontSend": false,
  76.       "editMessage": "0",
  77.       "editMessageVarName": "",
  78.       "storage": "0",
  79.       "varName2": "",
  80.       "name": "Send Message"
  81.     }
  82.   ],
  83.   "comType": "3"
  84. }
Advertisement
Add Comment
Please, Sign In to add comment