fix eval send alias

This commit is contained in:
Lamp 2018-10-06 13:16:47 -07:00
parent e077df9509
commit 9ee3d2a7a3
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
1 changed files with 5 additions and 2 deletions

View File

@ -96,9 +96,12 @@ global.commands = {
var msg = message, m = message,
guild = message.guild,
channel = message.channel,
send = message.channel.send,
member = message.member,
client = dClient;
client = dClient,
send = function(){
channel.send.apply(channel, arguments);
},
say = send;
try {
var out = eval(message.content.substr(2));
} catch (error) {