Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "booster announcement",
- "permissions": "NONE",
- "permissions2": "NONE",
- "restriction": "1",
- "_id": "QwdzG",
- "actions": [
- {
- "behavior": "1",
- "interpretation": "0",
- "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};",
- "storage": "0",
- "varName": "",
- "name": "Run Script"
- },
- {
- "channel": "103",
- "varName": "1153171526644944927",
- "message": "<@819362961239703562>,${tempVars(\"member\")} Telah boost ${tempVars(\"total\")}x, msg [link](${tempVars(\"message-url\")})",
- "buttons": [],
- "selectMenus": [],
- "attachments": [],
- "embeds": [],
- "reply": true,
- "ephemeral": false,
- "tts": false,
- "overwrite": false,
- "dontSend": false,
- "editMessage": "0",
- "editMessageVarName": "",
- "storage": "0",
- "varName2": "",
- "name": "Send Message"
- },
- {
- "channel": "103",
- "varName": "1153157705524052070",
- "message": "<@${tempVars(\"after\").id}>",
- "buttons": [
- {
- "name": "Ambil Reward Tambahan",
- "type": "LINK",
- "id": "msg-button-baaeda8d",
- "row": "",
- "url": "https://discord.com/channels/1021954822116749332/${tempVars(\"chid\")}",
- "emoji": "<a:hype:1156568198179733575>",
- "mode": "PERSISTENT",
- "time": "",
- "actions": []
- }
- ],
- "selectMenus": [],
- "attachments": [],
- "embeds": [
- {
- "title": "Thanks, ${tempVars(\"member\").displayName}",
- "url": "",
- "color": "f169ff",
- "timestamp": "true",
- "imageUrl": "https://cdn.discordapp.com/attachments/1023214623249399888/1050031696218705990/empty.png",
- "thumbUrl": "${tempVars(\"member\").displayAvatarURL({ dynamic: true })}",
- "description": "${tempVars(\"text\")}",
- "fields": [],
- "author": "${tempVars(\"member\").displayName}",
- "authorUrl": "",
- "authorIcon": "${tempVars(\"member\").displayAvatarURL({ dynamic: true })}",
- "footerText": "RyuShin.store",
- "footerIconUrl": "https://cdn.discordapp.com/attachments/1023214623249399888/1162945845428224132/p.png"
- }
- ],
- "reply": true,
- "ephemeral": false,
- "tts": false,
- "overwrite": false,
- "dontSend": false,
- "editMessage": "0",
- "editMessageVarName": "",
- "storage": "0",
- "varName2": "",
- "name": "Send Message"
- }
- ],
- "comType": "3"
- }
Advertisement
Add Comment
Please, Sign In to add comment