Skip to content

Commit

Permalink
Update eval.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiueokashi authored Jan 10, 2021
1 parent 7ccffe7 commit 36adf15
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eval/commands/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ module.exports = {
ownerOnly: true,

async execute(message,args,client) {
console.log(args)
let e

var code = message.content.slice(client.prefix.length+4).split(' ');
try {
e = await eval(code.join(' '));
await eval(args.join(' '));
message.react('✅');
} catch (error) {
message.channel.send({
Expand Down

0 comments on commit 36adf15

Please sign in to comment.