Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "eval",
- "permissions": "NONE",
- "restriction": "0",
- "_id": "InGCP",
- "actions": [
- {
- "member": "1",
- "varName": "",
- "info": "22",
- "storage": "1",
- "varName2": "authTag",
- "name": "Store Member Info"
- },
- {
- "storage": "1",
- "varName": "authTag",
- "comparison": "1",
- "value": "DanPlayzYT#3965",
- "iftrue": "0",
- "iftrueVal": "2",
- "iffalse": "1",
- "iffalseVal": "",
- "name": "Check Variable"
- },
- {
- "behavior": "0",
- "interpretation": "1",
- "code": "const { RichEmbed } = require('discord.js')\nconst { inspect } = require('util')\nconst embed = new RichEmbed()\n .setFooter(msg.author.username + \" | Credit to Almeida#0001\", msg.author.displayAvatarURL)\nconst args = msg.content.slice(this.getDBM().Files.data.settings.tag.length).trim().split(/ +/g); args.shift()\nconst query = args.join(' ')\nif (query) {\n const code = (lang, code) => (`\\`\\`\\`${lang}\\n${String(code).slice(0, 1000) + (code.length >= 1000 ? '...' : '')}\\n\\`\\`\\``).replace(client ? client.token : this.getDBM().Bot.bot.token, '*'.repeat((client ? client.token : this.getDBM().Bot.bot.token).length))\n try {\n const evald = eval(query)\n const res = (typeof evald === 'string' ? evald : inspect(evald, { depth: 0 }))\n embed.addField('Result', code('js', res))\n .addField('Type', code('css', typeof evald === 'undefined' ? 'Unknown' : typeof evald))\n .setColor('#8fff8d')\n } catch (err) {\n embed.addField('Error', code('js', err))\n .setColor('#ff5d5d')\n } finally {\n msg.channel.send(embed)\n .catch(err => {\n msg.channel.send(`There was an error while displaying the eval result! ${err.message}`)\n })\n }\n} else {\n msg.channel.send('Please, write something so I can evaluate!')\n}",
- "storage": "0",
- "varName": "",
- "name": "Run Script"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement