Skip to content

Commit

Permalink
Merge pull request #24 from ddiabla/patch-1
Browse files Browse the repository at this point in the history
Added Typeof at eval :P
  • Loading branch information
IgorKowalczyk authored Sep 13, 2021
2 parents 59a69ef + d275a54 commit db0d939
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/Owner/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ module.exports = {
});
}
let evaluated = eval(result);
let type = typeof(evaluated)
console.log(result);
const success = new Discord.MessageEmbed() // Prettier
.setColor("RANDOM")
.setTitle("💡 Eval")
.addField(`Type:\n`, "```js\n" + `${type}` + "```", true)
.addField(`Input:\n`, "```js\n" + `${args.join(" ")}` + "```", false)
.addField(`Output:\n`, "```js\n" + evaluated + "```", true)
.setFooter(
Expand Down

0 comments on commit db0d939

Please sign in to comment.