Last active
May 22, 2016 06:24
-
-
Save txj-xyz/72bbd2ab4739064c2b1ae6607bdf9f41 to your computer and use it in GitHub Desktop.
evaldiscordie.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(msg[0] == "!eval2" && e.message.author.id === "67757683851132928"){ | |
try{ | |
e.message.channel.sendMessage("```javascript\n" + eval("require('util').inspect(" + args + ")") + "```") | |
return | |
}catch(err){ | |
e.message.channel.sendMessage(":thumbsdown: `" + err + "`") | |
return | |
} | |
} | |
if(msg[0] == "!eval" && e.message.author.id === "67757683851132928"){ | |
try{ | |
e.message.channel.sendMessage("```javascript\n" + eval(args) + "```") | |
return | |
}catch(err){ | |
e.message.channel.sendMessage(":thumbsdown: `" + err + "`"); | |
return | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment