fix eval send alias
This commit is contained in:
parent
e077df9509
commit
9ee3d2a7a3
|
@ -96,9 +96,12 @@ global.commands = {
|
||||||
var msg = message, m = message,
|
var msg = message, m = message,
|
||||||
guild = message.guild,
|
guild = message.guild,
|
||||||
channel = message.channel,
|
channel = message.channel,
|
||||||
send = message.channel.send,
|
|
||||||
member = message.member,
|
member = message.member,
|
||||||
client = dClient;
|
client = dClient,
|
||||||
|
send = function(){
|
||||||
|
channel.send.apply(channel, arguments);
|
||||||
|
},
|
||||||
|
say = send;
|
||||||
try {
|
try {
|
||||||
var out = eval(message.content.substr(2));
|
var out = eval(message.content.substr(2));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue