Skip to content

Instantly share code, notes, and snippets.

@txj-xyz
Last active May 22, 2016 06:24
Show Gist options
  • Save txj-xyz/72bbd2ab4739064c2b1ae6607bdf9f41 to your computer and use it in GitHub Desktop.
Save txj-xyz/72bbd2ab4739064c2b1ae6607bdf9f41 to your computer and use it in GitHub Desktop.
evaldiscordie.js
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